build-test - fix TestWrapper CS warnings (dotnet/coreclr#19180)
authorJacek Blaszczynski <biosciencenow@outlook.com>
Sat, 28 Jul 2018 03:50:55 +0000 (05:50 +0200)
committerAaron Robinson <arobins@microsoft.com>
Sat, 28 Jul 2018 03:50:55 +0000 (20:50 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/ae5909995075f916e0a91804c41f7cf3994779c5

src/coreclr/tests/runtest.proj

index b1a402c..f071bd7 100644 (file)
@@ -258,7 +258,7 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
                     }
                     catch(Exception ex)
                     {
-                      sErrorText = "Unable to read error file: " + errorFile%3B
+                      sErrorText = $"Unable to read error file: {errorFile}\n{ex}"%3B
                     }
 
                     string outputText = null%3B
@@ -270,7 +270,7 @@ namespace $([System.String]::Copy($(Category)).Replace(".","_").Replace("\","").
                     }
                     catch(Exception ex)
                     {
-                        outputText = "Unable to read output file: " + outputFile%3B
+                        outputText = $"Unable to read error file: {outputFile}\n{ex}"%3B
                     }
 
                     string msg = infraEx != null ? "Test Infrastructure Failure: " + infraEx.ToString()