summaryrefslogtreecommitdiffstats
path: root/BuildTools/Scripts
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-13 01:27:15 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-13 01:27:15 +0000
commitab6b4ce15e7bc83f28b75b8ca8f234b6be7535f1 (patch)
treeff3162def2c31e748564b22c87240b20e33b935b /BuildTools/Scripts
parentAdded GenerateMips test (diff)
downloadDiligentCore-ab6b4ce15e7bc83f28b75b8ca8f234b6be7535f1.tar.gz
DiligentCore-ab6b4ce15e7bc83f28b75b8ca8f234b6be7535f1.zip
Fixed run_tests.bat to avoid strange behavior of errorlevel
Diffstat (limited to 'BuildTools/Scripts')
-rw-r--r--BuildTools/Scripts/appveyor/run_tests.bat15
1 files changed, 3 insertions, 12 deletions
diff --git a/BuildTools/Scripts/appveyor/run_tests.bat b/BuildTools/Scripts/appveyor/run_tests.bat
index 2d4219ab..19390ed9 100644
--- a/BuildTools/Scripts/appveyor/run_tests.bat
+++ b/BuildTools/Scripts/appveyor/run_tests.bat
@@ -17,24 +17,15 @@ if "%PLATFORM_NAME%"=="Windows8.1" (
)
if "%RUN_API_CORE_TEST%"=="true" (
- "%1\UnitTests\DiligentCoreTest\%CONFIGURATION%\DiligentCoreTest.exe"
- if %ERRORLEVEL% NEQ 0 (
- set ERROR=%ERRORLEVEL%
- )
+ "%1\UnitTests\DiligentCoreTest\%CONFIGURATION%\DiligentCoreTest.exe" || set ERROR=1
)
if "%RUN_CORE_API_D3D11_TEST%"=="true" (
- "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d11_sw
- if %ERRORLEVEL% NEQ 0 (
- set ERROR=%ERRORLEVEL%
- )
+ ("%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d11_sw) || set /a ERROR=%ERROR%+10
)
if "%RUN_CORE_API_D3D12_TEST%"=="true" (
- "%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d12_sw
- if %ERRORLEVEL% NEQ 0 (
- set ERROR=%ERRORLEVEL%
- )
+ ("%1\UnitTests\DiligentCoreAPITest\%CONFIGURATION%\DiligentCoreAPITest.exe" --mode=d3d12_sw) || set /a ERROR=%ERROR%+100
)
exit /B %ERROR% REM use /B to exit the current batch script context, and not the command prompt process