[autotest] Tweak the error message of the sysrq repair action.
When repairing a DUT by pressing sysrq-x failed, the error message
was the same as the error message for reset via servo. This changes
both messages to be clear about which operation failed.
BUG=None
TEST=run repair, see the new sysrq-x message
Change-Id: I9ccd34a47f21f6ab6f8c15b9cdce523b1f84022c
Reviewed-on: https://chromium-review.googlesource.com/457831
Commit-Ready: Richard Barnette <jrbarnette@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
diff --git a/server/hosts/cros_repair.py b/server/hosts/cros_repair.py
index 1ecbb85..c44ee3b 100644
--- a/server/hosts/cros_repair.py
+++ b/server/hosts/cros_repair.py
@@ -288,11 +288,11 @@
crashcollect.get_crashinfo(host, None)
return
raise hosts.AutoservRepairError(
- '%s is still offline after reset.' % host.hostname)
+ '%s is still offline after sysrq-x.' % host.hostname)
@property
def description(self):
- return 'Reset the DUT via kernel sysrq'
+ return 'Reset the DUT via keyboard sysrq-x'
class ServoResetRepair(hosts.RepairAction):
@@ -311,7 +311,7 @@
crashcollect.get_crashinfo(host, None)
return
raise hosts.AutoservRepairError(
- '%s is still offline after reset.' % host.hostname)
+ '%s is still offline after servo reset.' % host.hostname)
@property
def description(self):