Quellcode durchsuchen

[1.4>2.0] [MERGE #2938 @dilijev] Fix summary.log by appending to file instead of overwriting it.

Merge pull request #2938 from dilijev:fix-test-summary

For a while now, summary.log has been empty in CI artifacts when unit tests fail. Turns out we were overwriting the file with native test results instead of appending to it.
Doug Ilijev vor 8 Jahren
Ursprung
Commit
2aabeb4644
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      test/jenkins.testall.cmd
  2. 1 1
      test/jenkins.testone.cmd
  3. 1 1
      test/runcitests.cmd

+ 1 - 1
test/jenkins.testall.cmd

@@ -102,7 +102,7 @@ set _HadFailures=0
 
   pushd %_TestDir%\logs
   findstr /sp failed rl.results.log > summary.log
-  findstr /sip failed nativetests.log > summary.log
+  findstr /sip failed nativetests.log >> summary.log
   rem Echo to stderr so that VSO includes the output in the build summary
   type summary.log 1>&2
   popd

+ 1 - 1
test/jenkins.testone.cmd

@@ -98,7 +98,7 @@ set _HadFailures=0
 
   pushd %_LogDir%
   findstr /sp failed rl.results.log > summary.log
-  findstr /sip failed nativetests.log > summary.log
+  findstr /sip failed nativetests.log >> summary.log
   rem Echo to stderr so that VSO includes the output in the build summary
   type summary.log 1>&2
   popd

+ 1 - 1
test/runcitests.cmd

@@ -158,7 +158,7 @@ set _HadFailures=0
 
   pushd %_TestDir%\logs
   findstr /sp failed rl.results.log > %1
-  findstr /sip failed nativetests.log > %1
+  findstr /sip failed nativetests.log >> %1
   rem Echo to stderr so that VSO includes the output in the build summary
   type %1 1>&2
   popd