Autotest: Use Lab Status to Disable Certain Boards
Now that we have the Lab Status Page up, we would like to make more
use of it by allowing it to be able to disable running new suites
on certain boards.
This becomes useful should a bug starts bringing down DUT's for a
specific subset of boards.
Now the status message should follow the format of:
Lab is 'status' [boards_disabled] (comment)
For example:
Lab is Open [stumpy, kiev, x86-alex] (power_resume bug bringing down
DUT's)
BUG=chromium-os:37346
TEST=local setup
Change-Id: Ib2e4960f8cac427db1606f56477305d82bc110d4
Reviewed-on: https://gerrit.chromium.org/gerrit/40940
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Brian Harring <ferringb@chromium.org>
diff --git a/site_utils/run_suite.py b/site_utils/run_suite.py
index 86d4ed3..1fd6e7b 100755
--- a/site_utils/run_suite.py
+++ b/site_utils/run_suite.py
@@ -325,10 +325,9 @@
setup_logging(logfile=log_name)
try:
- utils.check_lab_status()
- except error.LabIsDownException as e:
- # Lab is not up, return WARNING.
- logging.debug('Lab is not up. Error message: %s', e)
+ utils.check_lab_status(options.board)
+ except (error.LabIsDownException, error.BoardIsDisabledException) as e:
+ logging.debug('Error Message: %s', e)
print str(e)
return WARNING