mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
ninjalog uploader: migrate to python3
This removes dependency to httplib2 by using urllib. https://docs.python.org/3/library/http.client.html#httpresponse-objects Use six for both py2/py3 unittest. Bug: b/177465438 Change-Id: I48383559842615f97abea45b55ca0acf4d7c8bd3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2629087 Commit-Queue: Bruce Dawson <brucedawson@chromium.org> Reviewed-by: Bruce Dawson <brucedawson@chromium.org> Reviewed-by: Yoshisato Yanagisawa <yyanagisawa@google.com> Reviewed-by: Fumitoshi Ukai <ukai@google.com> Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
This commit is contained in:
@@ -36,14 +36,14 @@ REM Also print it to reassure that the right settings are being used.
|
||||
FOR /f "usebackq tokens=*" %%a in (`vpython %scriptdir%autoninja.py "%*"`) do echo %%a & %%a
|
||||
@if errorlevel 1 goto buildfailure
|
||||
|
||||
REM Use call to invoke vpython script here, because we use vpython via vpython.bat.
|
||||
REM Use call to invoke python script here, because we may use python3 via python3.bat.
|
||||
@if "%NINJA_SUMMARIZE_BUILD%" == "1" call python3 %scriptdir%post_build_ninja_summary.py %*
|
||||
@call python.bat %scriptdir%ninjalog_uploader_wrapper.py --cmdline %*
|
||||
@call python3 %scriptdir%ninjalog_uploader_wrapper.py --cmdline %*
|
||||
|
||||
exit /b
|
||||
:buildfailure
|
||||
|
||||
@call python.bat %scriptdir%ninjalog_uploader_wrapper.py --cmdline %*
|
||||
@call python3 %scriptdir%ninjalog_uploader_wrapper.py --cmdline %*
|
||||
|
||||
REM Return an error code of 1 so that if a developer types:
|
||||
REM "autoninja chrome && chrome" then chrome won't run if the build fails.
|
||||
|
||||
Reference in New Issue
Block a user