diff options
author | Thomas Huth <thuth@redhat.com> | 2024-11-28 13:01:42 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-12-02 14:52:47 +0100 |
commit | c78ba4341c69635ca864c39ed9c29e10e7fdd901 (patch) | |
tree | 37a8509f067060f98ef2539b33a817508098cc8e /tests | |
parent | fe455260b0b0af61ad023c18d2da676cbc9e1b42 (diff) |
tests/functional/test_virtio_version: Check for the availability of the machine
Use self_set_machine() to set and check for the availability of the
default pc machine (so that the test is not failing if the machine
has not been included in the QEMU binary).
Message-ID: <20241128120142.593408-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/functional/test_virtio_version.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/functional/test_virtio_version.py b/tests/functional/test_virtio_version.py index eb23060564..92e3f5caf0 100755 --- a/tests/functional/test_virtio_version.py +++ b/tests/functional/test_virtio_version.py @@ -141,6 +141,7 @@ class VirtioVersionCheck(QemuSystemTest): def test_conventional_devs(self): + self.set_machine('pc') self.check_all_variants('virtio-net-pci', VIRTIO_NET) # virtio-blk requires 'driver' parameter #self.check_all_variants('virtio-blk-pci', VIRTIO_BLOCK) @@ -167,6 +168,7 @@ class VirtioVersionCheck(QemuSystemTest): self.assertIn('pci-express-device', ifaces) def test_modern_only_devs(self): + self.set_machine('pc') self.check_modern_only('virtio-vga', VIRTIO_GPU) self.check_modern_only('virtio-gpu-pci', VIRTIO_GPU) self.check_modern_only('virtio-mouse-pci', VIRTIO_INPUT) |