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/client/common_lib/error.py b/client/common_lib/error.py
index ca1a2c7..2783fd1 100644
--- a/client/common_lib/error.py
+++ b/client/common_lib/error.py
@@ -565,6 +565,11 @@
pass
+class BoardIsDisabledException(Exception):
+ """Raised when a certain board is disabled in the Lab"""
+ 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():