summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Forstall <Bruce_Forstall@msn.com>2019-01-03 19:39:07 -0800
committerBruce Forstall <Bruce_Forstall@msn.com>2019-01-03 19:39:07 -0800
commit118383661a30bfad6f6c45f2cae034ea05ec3e61 (patch)
tree222ab488c687980f5ef897ea8191cdde3fe3beba /tests
parent73d7d224ae6fb9b13bb641440c06606f426215cb (diff)
downloadcoreclr-118383661a30bfad6f6c45f2cae034ea05ec3e61.tar.gz
coreclr-118383661a30bfad6f6c45f2cae034ea05ec3e61.tar.bz2
coreclr-118383661a30bfad6f6c45f2cae034ea05ec3e61.zip
Check result of call to TestEnv script
If you give an illegal, not executable TestEnv script, then this will not fail silently.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/CLRTest.Execute.Batch.targets9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/src/CLRTest.Execute.Batch.targets b/tests/src/CLRTest.Execute.Batch.targets
index 34a2e21e30..3101f52f5b 100644
--- a/tests/src/CLRTest.Execute.Batch.targets
+++ b/tests/src/CLRTest.Execute.Batch.targets
@@ -382,7 +382,14 @@ $(BatchCLRTestArgPrep)
$(BatchCLRTestExitCodePrep)
REM The __TestEnv variable may be used to specify something to run before the test.
-IF NOT "%__TestEnv%"=="" call %__TestEnv%
+IF NOT "%__TestEnv%"=="" (
+ call %__TestEnv%
+ IF NOT "!ERRORLEVEL!"=="0" (
+ ECHO CALLING __TestEnv SCRIPT FAILED
+ popd
+ Exit /b 1
+ )
+)
REM Environment Variables
$(BatchEnvironmentVariables)