]> granicus.if.org Git - python/commitdiff
bpo-36511: Ensure error code propagates out of batch files (GH-13529)
authorPaul Monson <paulmon@users.noreply.github.com>
Fri, 24 May 2019 16:15:39 +0000 (09:15 -0700)
committerSteve Dower <steve.dower@python.org>
Fri, 24 May 2019 16:15:39 +0000 (09:15 -0700)
Tools/buildbot/test.bat

index b84e8e25567215cedea5e0a42a34dd25903339e3..f430680f3d80cffc6b114200942e44c0b4fa4261 100644 (file)
@@ -21,7 +21,7 @@ echo on
 if "%arm32_ssh%"=="true" goto :Arm32Ssh
 
 call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args%
-exit /b 0
+exit /b %ERRORLEVEL%
 
 :Arm32Ssh
 set dashU=-unetwork,decimal,subprocess,urlfetch,tzdata
@@ -42,7 +42,7 @@ scp -r "%PYTHON_SOURCE%Lib" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Lib"
 
 set rt_args=%rt_opts% %dashU% -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args% %TEMP_ARGS%
 ssh %SSH_SERVER% "set TEMP=%REMOTE_PYTHON_DIR%temp& %REMOTE_PYTHON_DIR%PCbuild\rt.bat" %rt_args%
-exit /b 0
+exit /b %ERRORLEVEL%
 
 :Arm32SshHelp
 echo SSH_SERVER environment variable must be set to administrator@[ip address]