aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/windows/run-tests.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildsteps/windows/run-tests.bat')
-rw-r--r--tools/buildsteps/windows/run-tests.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/buildsteps/windows/run-tests.bat b/tools/buildsteps/windows/run-tests.bat
index 2bde835b0a..ab60f59e8d 100644
--- a/tools/buildsteps/windows/run-tests.bat
+++ b/tools/buildsteps/windows/run-tests.bat
@@ -43,6 +43,11 @@ ECHO ------------------------------------------------------------
ECHO Running testsuite...
"%buildconfig%\%APP_NAME%-test.exe" --gtest_output=xml:%WORKSPACE%\gtestresults.xml
+ IF NOT EXIST %WORKSPACE%\gtestresults.xml (
+ set DIETEXT="%APP_NAME%-test.exe failed to execute or output test results!"
+ goto DIE
+ )
+
rem Adapt gtest xml output to be conform with junit xml
rem this basically looks for lines which have "notrun" in the <testcase /> tag
rem and adds a <skipped/> subtag into it. For example: