Lines Matching refs:cmd
230 def _ssh_do(self, user, cmd, check): argument
245 assert not isinstance(cmd, str)
246 ssh_cmd += ["%s@127.0.0.1" % user] + list(cmd)
250 raise Exception("SSH command failed: %s" % cmd)
253 def ssh(self, *cmd): argument
254 return self._ssh_do(self._config["guest_user"], cmd, False)
256 def ssh_root(self, *cmd): argument
257 return self._ssh_do(self._config["root_user"], cmd, False)
259 def ssh_check(self, *cmd): argument
260 self._ssh_do(self._config["guest_user"], cmd, True)
262 def ssh_root_check(self, *cmd): argument
263 self._ssh_do(self._config["root_user"], cmd, True)
269 cmd = [os.environ.get("QEMU_IMG", "qemu-img")]
270 cmd.extend(list(args))
271 subprocess.check_call(cmd)
315 usernet_info = guest.cmd("human-monitor-command",
435 def wait_ssh(self, wait_root=False, seconds=300, cmd="exit 0"): argument
443 if wait_root and self.ssh_root(cmd) == 0:
446 elif self.ssh(cmd) == 0:
655 cmd = [vm.BUILD_SCRIPT.format(
661 cmd = args.commands
675 if vm.ssh(*cmd) != 0: