Skip to content

Commit 34b1e17

Browse files
committed
Fix runtests when running under appveyor
1 parent c4d42ea commit 34b1e17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/RunTests.cmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,11 @@ goto :EOF
287287

288288
rem See <http://www.appveyor.com/docs/environment-variables>
289289
if not defined APPVEYOR goto :EOF
290-
powershell -File Upload-Results.ps1 %RESULTSDIR%\%XMLFILE%
291290

291+
set saved_errorlevel=%errorlevel%
292+
echo Saved errorlevel %saved_errorlevel%
293+
powershell -File Upload-Results.ps1 %RESULTSDIR%\%XMLFILE%
294+
if %saved_errorlevel% neq 0 exit /b %saved_errorlevel%
292295
goto :EOF
293296

294297
:: Note: "goto :EOF" returns from an in-batchfile "call" command

0 commit comments

Comments
 (0)