Add suspend method.
Add method to be able to suspend machines from server side
without calling a client test: this way, we can suspend for hours.
Remove dummy_Suspend.
TEST=Run hardware_StorageStress/control.suspend
Run hardware_StorageStress/control.quick
Run kernel_MemoryRamoop/control
BUG=chromium:376881
Change-Id: Ic7e6624485e4473a90d575ed53ea89bb164724e0
Reviewed-on: https://chromium-review.googlesource.com/201385
Reviewed-by: Gwendal Grignou <[email protected]>
Commit-Queue: Gwendal Grignou <[email protected]>
Tested-by: Gwendal Grignou <[email protected]>
diff --git a/client/common_lib/error.py b/client/common_lib/error.py
index 7aa74dc..a05af86 100644
--- a/client/common_lib/error.py
+++ b/client/common_lib/error.py
@@ -438,6 +438,11 @@
pass
+class AutoservSuspendError(AutoservRebootError):
+ """Error occured while suspending a machine"""
+ pass
+
+
class AutoservSubcommandError(AutoservError):
"""Indicates an error while executing a (forked) subcommand"""
def __init__(self, func, exit_code):