Skip to content

Commit 51394b8

Browse files
paulmonzooba
authored andcommitted
bpo-36511: Ensure error code propagates out of batch files (GH-13529)
1 parent c994c8f commit 51394b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/buildbot/test.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo on
2121
if "%arm32_ssh%"=="true" goto :Arm32Ssh
2222

2323
call "%here%..\..\PCbuild\rt.bat" %rt_opts% -uall -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args%
24-
exit /b 0
24+
exit /b %ERRORLEVEL%
2525

2626
:Arm32Ssh
2727
set dashU=-unetwork,decimal,subprocess,urlfetch,tzdata
@@ -42,7 +42,7 @@ scp -r "%PYTHON_SOURCE%Lib" "%SSH_SERVER%:%REMOTE_PYTHON_DIR%Lib"
4242

4343
set rt_args=%rt_opts% %dashU% -rwW --slowest --timeout=1200 --fail-env-changed %regrtest_args% %TEMP_ARGS%
4444
ssh %SSH_SERVER% "set TEMP=%REMOTE_PYTHON_DIR%temp& %REMOTE_PYTHON_DIR%PCbuild\rt.bat" %rt_args%
45-
exit /b 0
45+
exit /b %ERRORLEVEL%
4646

4747
:Arm32SshHelp
4848
echo SSH_SERVER environment variable must be set to administrator@[ip address]

0 commit comments

Comments
 (0)