Lines Matching full:shell
5 """A module to abstract the shell execution environment on DUT."""
12 """Shell specific exception."""
17 """An object to wrap the local shell environment."""
30 process = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
37 """Run a shell command.
58 """Run a shell command and return its return code.
66 """Run shell command and return its console output to the caller.
91 """An object to wrap the ADB shell environment.
94 via "adb shell".
110 if (self._host_shell.run_command_get_output('adb shell whoami')[0]
115 cmd = "adb shell 'export TMPDIR=/data/local/tmp; %s'" % cmd.replace("'", "\\'")
119 """Run a shell command.
140 """Run a shell command and return its return code.
144 # Executing command via adb shell always returns 0.
152 """Run shell command and return its console output to the caller.
157 # stderr is merged into stdout through adb shell.
192 cmd = ('for i in $(seq 0 %d); do adb shell sleep 1 || false; done' %