Commit df322865 authored by Aleksey Khoroshilov's avatar Aleksey Khoroshilov Committed by LUCI CQ

Set errorlevel in .bat wrappers on exit /b where appropriate.

Fixed goma_auth/ctl return code on Windows which was always zero.
Fixed other places where exit /b was used without %errorlevel%.

Change-Id: Ib0a647818c595f843a95762db023b111a447a66a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3532153Reviewed-by: 's avatarTakuto Ikuta <tikuta@chromium.org>
Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Auto-Submit: Aleksey Khoroshilov <akhoroshilov@brave.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
parent 6ec83a24
......@@ -44,7 +44,7 @@ FOR /f "usebackq tokens=*" %%a in (`%scriptdir%python-bin\python3.bat %scriptdir
@if "%NINJA_SUMMARIZE_BUILD%" == "1" call %scriptdir%python-bin\python3.bat %scriptdir%post_build_ninja_summary.py %*
@call %scriptdir%python-bin\python3.bat %scriptdir%ninjalog_uploader_wrapper.py --cmdline %*
exit /b
exit /b %ERRORLEVEL%
:buildfailure
@call %scriptdir%python-bin\python3.bat %scriptdir%ninjalog_uploader_wrapper.py --cmdline %*
......
......@@ -9,4 +9,4 @@ set scriptdir=%~dp0
@call "%~dp0\cipd_bin_setup.bat" > nul 2>&1
@call %scriptdir%python-bin\python3.bat %~dp0\.cipd_bin\goma_auth.py %*
exit /b
exit /b %ERRORLEVEL%
......@@ -9,4 +9,4 @@ set scriptdir=%~dp0
@call "%~dp0\cipd_bin_setup.bat" > nul 2>&1
@call %scriptdir%python-bin\python3.bat %~dp0\.cipd_bin\goma_ctl.py %*
exit /b
exit /b %ERRORLEVEL%
......@@ -15,7 +15,7 @@ IF "%~nx0"=="update_depot_tools.bat" (
if errorlevel 1 goto :EOF
:: Use call/exit to avoid leaving an orphaned window title.
call "%TEMP%\update_depot_tools_tmp.bat" "%~dp0" %*
exit /b
exit /b %ERRORLEVEL%
)
set DEPOT_TOOLS_DIR=%~1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment