summary refs log tree commit diff stats
path: root/tests/functional/test_ppc64_hv.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-03-24 13:34:50 +0100
committerThomas Huth <thuth@redhat.com>2025-03-27 08:59:35 +0100
commitdba0752f2c16f63825a06e9ebe4ac651bdc95b99 (patch)
tree6cd4422f921bbade57fca57b42d6900c08acbd16 /tests/functional/test_ppc64_hv.py
parentf0a6b3ec6d8dcaf2c4c1b159904a271e9eebd0df (diff)
downloadfocaccia-qemu-dba0752f2c16f63825a06e9ebe4ac651bdc95b99.tar.gz
focaccia-qemu-dba0752f2c16f63825a06e9ebe4ac651bdc95b99.zip
tests/functional: Add missing require_netdev('user') statements
A bunch of tests are using "-netdev user" but fail to check
for the availability of SLIRP in the binary, so these tests
fail if QEMU has been configured with "--disable-slirp"
(most of the tests are disabled by default with a decorator,
that's likely why nobody noticed this problem yet). Add the
missing self.require_netdev('user') statements to skip the
tests if SLIRP is not available.

Message-ID: <20250324123450.111307-1-thuth@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_ppc64_hv.py')
-rwxr-xr-xtests/functional/test_ppc64_hv.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/test_ppc64_hv.py b/tests/functional/test_ppc64_hv.py
index 62f996adf6..1920e91f18 100755
--- a/tests/functional/test_ppc64_hv.py
+++ b/tests/functional/test_ppc64_hv.py
@@ -125,6 +125,7 @@ class HypervisorTest(QemuSystemTest):
 
     def test_hv_pseries(self):
         self.require_accelerator("tcg")
+        self.require_netdev('user')
         self.set_machine('pseries')
         self.vm.add_args("-accel", "tcg,thread=multi")
         self.vm.add_args('-device', 'nvme,serial=1234,drive=drive0')
@@ -136,6 +137,7 @@ class HypervisorTest(QemuSystemTest):
 
     def test_hv_pseries_kvm(self):
         self.require_accelerator("kvm")
+        self.require_netdev('user')
         self.set_machine('pseries')
         self.vm.add_args("-accel", "kvm")
         self.vm.add_args('-device', 'nvme,serial=1234,drive=drive0')
@@ -147,6 +149,7 @@ class HypervisorTest(QemuSystemTest):
 
     def test_hv_powernv(self):
         self.require_accelerator("tcg")
+        self.require_netdev('user')
         self.set_machine('powernv')
         self.vm.add_args("-accel", "tcg,thread=multi")
         self.vm.add_args('-device', 'nvme,bus=pcie.2,addr=0x0,serial=1234,drive=drive0',