Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion tests/runtest.proj
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down