tests/avocado: add :avocado: tags for some tests
RFC PATCH 1/1 tests/avocado: add :avocado: tags for some tests
This stops a bunch of tests failing because of a lack of "./qemu-system-x86-64" in a build directory where you have configured only one non-default target. I suspect what we really need is:
:avocado: tags=arch:host
to be properly multi-arch safe.
Signed-off-by Alex Bennée <[email protected]>
--- tests/avocado/empty_cpu_model.py | 3 +++ tests/avocado/info_usernet.py | 3 +++ tests/avocado/migration.py | 1 + tests/avocado/version.py | 1 + tests/avocado/vnc.py | 1 + 5 files changed, 9 insertions(+)
tests/avocado/empty_cpu_model.py +3 -0
@@ -11,6 +11,9 @@ class EmptyCPUModel(QemuSystemTest): def test(self): + """ + :avocado: tags=arch:x86_64 + """ self.vm.add_args('-S', '-display', 'none', '-machine', 'none', '-cpu', '') self.vm.set_qmp_monitor(enabled=False) self.vm.launch()
tests/avocado/info_usernet.py +3 -0
@@ -16,6 +16,9 @@ class InfoUsernet(QemuSystemTest): def test_hostfwd(self): + """ + :avocado: tags=arch:x86_64 + """ self.vm.add_args('-netdev', 'user,id=vnet,hostfwd=:127.0.0.1:0-:22') self.vm.launch() res = self.vm.command('human-monitor-command',
tests/avocado/migration.py +1 -0
@@ -22,6 +22,7 @@ class Migration(QemuSystemTest): """ :avocado: tags=migration + :avocado: tags=arch:x86_64 """ timeout = 10
tests/avocado/version.py +1 -0
@@ -15,6 +15,7 @@ class Version(QemuSystemTest): """ :avocado: tags=quick + :avocado: tags=arch:x86_64 """ def test_qmp_human_info_version(self): self.vm.add_args('-nodefaults')
tests/avocado/vnc.py +1 -0
@@ -14,6 +14,7 @@ class Vnc(QemuSystemTest): """ :avocado: tags=vnc,quick + :avocado: tags=arch:x86_64 """ def test_no_vnc(self): self.vm.add_args('-nodefaults', '-S')
Signature · 1 line
2.30.2