Autotest: Dynamic Suite dies if Try Job has been aborted.
Updated wait_for_and_lock_job_hosts to check if all the dependent
jobs have been aborted. If so return False and the reimager will
also return False.
This will prevent suite jobs from getting stuck Running if the try
job has actually been aborted.
BUG=chromium-os:36175
TEST=local setup. Ensured that when a try job is aborted the suite job
died as well. Also updated the unittests.
Change-Id: Iedf40953e3d2a373886d168d0ae918e7b215499f
Reviewed-on: https://gerrit.chromium.org/gerrit/37918
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
diff --git a/client/common_lib/error.py b/client/common_lib/error.py
index 460df58..54a08cd 100644
--- a/client/common_lib/error.py
+++ b/client/common_lib/error.py
@@ -555,6 +555,11 @@
pass
+class ReimageAbortedException(CrosDynamicSuiteException):
+ """Raised when a Reimage job is aborted"""
+ pass
+
+
# This MUST remain at the end of the file.
# Limit 'from error import *' to only import the exception instances.
for _name, _thing in locals().items():