Commit 3253a1de authored by Takuto Ikuta's avatar Takuto Ikuta Committed by LUCI CQ

autoninja: roll back to python from python3

python3 is currently not recognized on git bash.
https://crrev.com/c/2629087/15#message-b5093e69201df42adb7ac643e4f97f9f366a299d

This is partial revert of
https://crrev.com/c/2629087
https://crrev.com/c/2631396

Bug: b/177465438
Change-Id: I1b2698f5fc27144035598249c43800d25801a0f7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2638834Reviewed-by: 's avatarBruce Dawson <brucedawson@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
parent 0eb10476
......@@ -5,7 +5,7 @@
# found in the LICENSE file.
# Set unique build ID.
AUTONINJA_BUILD_ID="$(python3 -c "import uuid; print(uuid.uuid4())")"
AUTONINJA_BUILD_ID="$(python -c "import uuid; print(uuid.uuid4())")"
export AUTONINJA_BUILD_ID
if [ "$NINJA_SUMMARIZE_BUILD" == "1" ]; then
......@@ -20,16 +20,16 @@ if [ "$NINJA_SUMMARIZE_BUILD" == "1" ]; then
fi
if eval "$command"; then
if [ "$NINJA_SUMMARIZE_BUILD" == "1" ]; then
python3 "$(dirname -- "$0")/post_build_ninja_summary.py" "$@"
python "$(dirname -- "$0")/post_build_ninja_summary.py" "$@"
fi
# Collect ninjalog from googler.
python3 "$(dirname -- "$0")/ninjalog_uploader_wrapper.py" --cmd $command
python "$(dirname -- "$0")/ninjalog_uploader_wrapper.py" --cmd $command
exit
fi
# Collect ninjalog from googler.
python3 "$(dirname -- "$0")/ninjalog_uploader_wrapper.py" --cmd $command
python "$(dirname -- "$0")/ninjalog_uploader_wrapper.py" --cmd $command
# Return an error code of 1 so that if a developer types:
# "autoninja chrome && chrome" then chrome won't run if the build fails.
......
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