buildbot_test_toolchain: return 2 if trybot fails.
We will print out the trybot url in the sheriff email if the trybot
fails. To to that, we need to set return value to 2 if the trybot
fails.
BUG=chromium:767524
TEST=None
Change-Id: Id3a8eb2cbcb8f85ada28ea11d4faf9113c9369ba
Reviewed-on: https://chromium-review.googlesource.com/692620
Commit-Ready: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index 249b511..33d73a2 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -270,7 +270,7 @@
% build_id)
if len(trybot_image) == 0:
self._l.LogError('Unable to find trybot_image for %s!' % description)
- return 1
+ return 2
vanilla_image = self._GetVanillaImageName(trybot_image)
nonafdo_image = self._GetNonAFDOImageName(trybot_image)