Lines Matching refs:cmd
132 def RunCommandForOutput(cmd, env, stdout, stderr, timeout=60): argument
148 proc = Popen(cmd, stdout=stdout, stderr=stderr, env=env,
163 def _LogCmdOutput(logfile, cmd, output, retcode): argument
173 CommandListToCommandString(cmd), output, retcode))
176 def RunCommand(cmd, out, err, timeout=5): argument
195 (_, _, retcode) = RunCommandForOutput(cmd, None, outf, errf, timeout)
203 def CommandListToCommandString(cmd): argument
214 return ' '.join([shlex.quote(segment) for segment in cmd])
255 def RunCommand(self, cmd, log_severity=LogSeverity.ERROR): argument
333 def RunCommand(self, cmd, log_severity=LogSeverity.ERROR): argument
338 cmd, env, PIPE, PIPE, self._timeout)
342 _LogCmdOutput(self._logfile, cmd, output, retcode)
432 def RunCommand(self, cmd, log_severity=LogSeverity.ERROR): argument
443 cmd_str = CommandListToCommandString(cmd)
447 cmd = adb_cmd + ['shell', device_cmd]
448 (output, _, retcode) = RunCommandForOutput(cmd, self._shell_env, PIPE,
471 _LogCmdOutput(self._logfile, cmd, output, retcode)
508 cmd = 'adb shell if [ -d "{0}" ]; then rm -f "{0}"/*; fi'.format(
510 check_call(shlex.split(cmd), stdout=self._logfile, stderr=self._logfile)