summaryrefslogtreecommitdiffstats
path: root/tests/acceptance/linux_initrd.py
diff options
context:
space:
mode:
authorCleber Rosa2019-11-04 16:13:18 +0100
committerCleber Rosa2019-12-16 17:23:19 +0100
commitba21bde930f50360b135268e4e69a0ad561ddca2 (patch)
tree466a9e9766c567d09642a8eb093ce64a6cf60b31 /tests/acceptance/linux_initrd.py
parentAcceptance tests: introduce utility method for tags unique vals (diff)
downloadqemu-ba21bde930f50360b135268e4e69a0ad561ddca2.tar.gz
qemu-ba21bde930f50360b135268e4e69a0ad561ddca2.tar.xz
qemu-ba21bde930f50360b135268e4e69a0ad561ddca2.zip
Acceptance tests: use avocado tags for machine type
The same way the arch tag is being used as a fallback for the arch parameter, let's do the same for QEMU's machine and avoid some boiler plate code. This is now possible because, since Avocado 72.0, it's possible to use tags with names that match the machine types on QEMU. Signed-off-by: Cleber Rosa <crosa@redhat.com> Message-Id: <20191104151323.9883-4-crosa@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Cleber Rosa <crosa@redhat.com>
Diffstat (limited to 'tests/acceptance/linux_initrd.py')
-rw-r--r--tests/acceptance/linux_initrd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/acceptance/linux_initrd.py b/tests/acceptance/linux_initrd.py
index aaa4eb9698..a3e54d3fc9 100644
--- a/tests/acceptance/linux_initrd.py
+++ b/tests/acceptance/linux_initrd.py
@@ -19,6 +19,7 @@ class LinuxInitrd(Test):
Checks QEMU evaluates correctly the initrd file passed as -initrd option.
:avocado: tags=arch:x86_64
+ :avocado: tags=machine:pc
"""
timeout = 300
@@ -67,7 +68,6 @@ class LinuxInitrd(Test):
initrd.write(b'\0')
initrd.flush()
- self.vm.set_machine('pc')
self.vm.set_console()
kernel_command_line = 'console=ttyS0'
self.vm.add_args('-kernel', kernel_path,