mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
[autoninja] upload ninjalog even in failed build
I noticed current autoninja does not upload build log in failed build. Change-Id: Ie58646b483e130769ad22113953c0b95b3145548 Reviewed-on: https://chromium-review.googlesource.com/c/1441892 Reviewed-by: Dirk Pranke <dpranke@chromium.org> Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
This commit is contained in:
@@ -21,6 +21,10 @@ if eval "$command"; then
|
||||
"$(dirname -- "$0")/ninjalog_uploader_wrapper.py" --cmd $command
|
||||
exit
|
||||
fi
|
||||
|
||||
# Collect ninjalog from googler.
|
||||
"$(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.
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user