summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorwtgodbe <wigodbe@microsoft.com>2016-03-22 16:31:50 -0700
committerwtgodbe <wigodbe@microsoft.com>2016-03-23 10:20:49 -0700
commit42ad67c73e71d7635638a86af7690d9507ce22bb (patch)
tree6f1c77a7199adf8470e8517e444784e47fc6f424 /tests
parent07d75e16770635768c063d7626c218de79ab6ee3 (diff)
downloadcoreclr-42ad67c73e71d7635638a86af7690d9507ce22bb.tar.gz
coreclr-42ad67c73e71d7635638a86af7690d9507ce22bb.tar.bz2
coreclr-42ad67c73e71d7635638a86af7690d9507ce22bb.zip
Print raw output for failed tests in CI/Jenkins failure report
Diffstat (limited to 'tests')
-rw-r--r--tests/runtest.proj16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/runtest.proj b/tests/runtest.proj
index 810ad71342..51fa2cfe1e 100644
--- a/tests/runtest.proj
+++ b/tests/runtest.proj
@@ -289,9 +289,23 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
sErrorText = "Unable to read error file: " + errorFile%3B
}
+ string outputText = null%3B
+ try
+ {
+ System.IO.StreamReader outputReader = new System.IO.StreamReader(outputFile)%3B
+ outputText = outputReader.ReadToEnd()%3B
+ outputReader.Close()%3B
+ }
+ catch(Exception ex)
+ {
+ outputText = "Unable to read output file: " + outputFile%3B
+ }
+
string msg = infraEx != null ? "Test Infrastructure Failure: " + infraEx.Message
: sErrorText + "\n\n" +
- "Raw output: " + outputFile + "\n" +
+ "Return code: " + ret + "\n" +
+ "Raw output file: " + outputFile + "\n" +
+ "Raw output:\n" + outputText + "\n" +
"To run the test:\n" +
"> set CORE_ROOT=" + _Global.coreRoot + "\n" +
"> " + testExecutable + "\n"%3B