mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
tests/vm: Add Haiku test based on their vagrant images
Signed-off-by: Alexander von Gluck IV <kallisti5@unixzen.com> [PMD: Avoid recreating the image each time] Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [thuth: Add ninja package, /usr/bin/env hack and --disable-slirp] Message-Id: <20201114165137.15379-5-thuth@redhat.com> Buglink: https://bugs.launchpad.net/qemu/+bug/1715203 Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
ded5d78c1e
commit
9fc33bf4e1
5 changed files with 152 additions and 3 deletions
|
@ -44,6 +44,7 @@ DEFAULT_CONFIG = {
|
|||
'machine' : 'pc',
|
||||
'guest_user' : "qemu",
|
||||
'guest_pass' : "qemupass",
|
||||
'root_user' : "root",
|
||||
'root_pass' : "qemupass",
|
||||
'ssh_key_file' : SSH_KEY_FILE,
|
||||
'ssh_pub_key_file': SSH_PUB_KEY_FILE,
|
||||
|
@ -245,13 +246,13 @@ class BaseVM(object):
|
|||
return self._ssh_do(self._config["guest_user"], cmd, False)
|
||||
|
||||
def ssh_root(self, *cmd):
|
||||
return self._ssh_do("root", cmd, False)
|
||||
return self._ssh_do(self._config["root_user"], cmd, False)
|
||||
|
||||
def ssh_check(self, *cmd):
|
||||
self._ssh_do(self._config["guest_user"], cmd, True)
|
||||
|
||||
def ssh_root_check(self, *cmd):
|
||||
self._ssh_do("root", cmd, True)
|
||||
self._ssh_do(self._config["root_user"], cmd, True)
|
||||
|
||||
def build_image(self, img):
|
||||
raise NotImplementedError
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue