faft: Remove the customized recovery reboot command
The customized recovery reboot command is a temporary solution for
emulating the Esc+Refresh+Power key combination which trigger a
recovery reboot immediately.
Now we don't use it anymore. So this CL is to remove this support.
BUG=chromium-os:34823
TEST=None, trivial change
Change-Id: I2b539a355ef78102c22c60fa6299ce5cd35a8e21
Reviewed-on: https://gerrit.chromium.org/gerrit/36858
Commit-Ready: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
diff --git a/server/cros/faftsequence.py b/server/cros/faftsequence.py
index 8009f83..8350998 100644
--- a/server/cros/faftsequence.py
+++ b/server/cros/faftsequence.py
@@ -71,7 +71,7 @@
be over-written if the registered FAFT_SEQUENCE is valid.
_faft_sequence: The registered FAFT_SEQUENCE.
_customized_key_commands: The dict of the customized key commands,
- including Ctrl-D, Ctrl-U, Enter, and recovery reboot.
+ including Ctrl-D, Ctrl-U, and Enter.
_install_image_path: The URL or the path on the host to the Chrome OS
test image to be installed.
_firmware_update: Boolean. True if firmware update needed after
@@ -100,7 +100,6 @@
'ctrl_d': None,
'ctrl_u': None,
'enter': None,
- 'rec_reboot': None,
}
_install_image_path = None
_firmware_update = False
@@ -990,10 +989,7 @@
i.e. switch ON + reboot + switch OFF, and the new keyboard controlled
recovery mode, i.e. just press Power + Esc + Refresh.
"""
- if self._customized_key_commands['rec_reboot']:
- logging.info('running the customized rec reboot command')
- os.system(self._customized_key_commands['rec_reboot'])
- elif self.client_attr.chrome_ec:
+ if self.client_attr.chrome_ec:
# Cold reset to clear EC_IN_RW signal
self.servo.set('cold_reset', 'on')
time.sleep(self.delay.hold_cold_reset)