FAFT: Non-blocking shell command
Certain shell commands, like "fastboot oem lock",
will not return until detecting an event like the
power button being pushed. In order for this to be
done in a test, we need to return immediately so that
the servo can emulate the power button push.
BUG=chromium:527484
BRANCH=none
TEST=Tested out with FAFT test to make sure that call
did not wait for return before moving on to next command.
Change-Id: I0c188650fcd4b729e11179563a59d6946f3d70eb
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/297420
Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
diff --git a/client/cros/faft/rpc_functions.py b/client/cros/faft/rpc_functions.py
index 48f6c2f..bdab24e 100755
--- a/client/cros/faft/rpc_functions.py
+++ b/client/cros/faft/rpc_functions.py
@@ -241,6 +241,14 @@
"""
return self._os_if.run_host_shell_command_get_output(command)
+ def _host_run_nonblock_shell_command(self, command):
+ """Run non-blocking shell command
+
+ @param command: A shell command to be run.
+ @return: none
+ """
+ return self._os_if.run_host_shell_command(command, False)
+
def _system_software_reboot(self):
"""Request software reboot."""
self._os_if.run_shell_command('reboot')