Add a exception that repair code can throw to indicate that it believes hardware repairs are necessary, and have the full-repair implementation call the hardware repair method after seeing that exception multiple times.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4723 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/common_lib/error.py b/client/common_lib/error.py
index 94ac476..42dfe2b 100644
--- a/client/common_lib/error.py
+++ b/client/common_lib/error.py
@@ -282,6 +282,14 @@
pass
+class AutoservHardwareRepairRequiredError(AutoservError):
+ """
+ Exception class raised during repairs to indicate that a hardware repair
+ is going to be necessary.
+ """
+ pass
+
+
class AutoservInstallError(AutoservError):
"""Error occured while installing autotest on a host"""
pass