summaryrefslogtreecommitdiffstats
path: root/Tools/buildbot
diff options
context:
space:
mode:
authorPaul Monson <paulmon@users.noreply.github.com>2019-05-24 16:15:39 (GMT)
committerSteve Dower <steve.dower@python.org>2019-05-24 16:15:39 (GMT)
commit51394b8c3d42e6e6d368251ff6f0612495724fc0 (patch)
tree4681bc8e92e36ec0eda4d3086c458bef818e033d /Tools/buildbot
parentc994c8fc196a167c57c8850e8abdee170d366eec (diff)
downloadcpython-51394b8c3d42e6e6d368251ff6f0612495724fc0.zip
cpython-51394b8c3d42e6e6d368251ff6f0612495724fc0.tar.gz
cpython-51394b8c3d42e6e6d368251ff6f0612495724fc0.tar.bz2
bpo-36511: Ensure error code propagates out of batch files (GH-13529)
Diffstat (limited to 'Tools/buildbot')
-rw-r--r--Tools/buildbot/test.bat4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/buildbot/test.bat b/Tools/buildbot/test.bat
index b84e8e2..f430680 100644
--- a/Tools/buildbot/test.bat
+++ b/Tools/buildbot/test.bat
@@ -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]