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
335 def RunCommand(self, cmd, log_severity=LogSeverity.ERROR): argument
340 cmd, env, PIPE, PIPE, self._timeout)
344 _LogCmdOutput(self._logfile, cmd, output, retcode)
434 def RunCommand(self, cmd, log_severity=LogSeverity.ERROR): argument
445 cmd_str = CommandListToCommandString(cmd)
449 cmd = adb_cmd + ['shell', device_cmd]
450 (output, _, retcode) = RunCommandForOutput(cmd, self._shell_env, PIPE,
473 _LogCmdOutput(self._logfile, cmd, output, retcode)
510 cmd = 'adb shell if [ -d "{0}" ]; then rm -f "{0}"/*; fi'.format(
512 check_call(shlex.split(cmd), stdout=self._logfile, stderr=self._logfile)