mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
f0a6b3ec6d
commit
dba0752f2c
7 changed files with 16 additions and 1 deletions
|
@ -41,6 +41,7 @@ class KVMXenGuest(QemuSystemTest):
|
|||
def common_vm_setup(self):
|
||||
# We also catch lack of KVM_XEN support if we fail to launch
|
||||
self.require_accelerator("kvm")
|
||||
self.require_netdev('user')
|
||||
|
||||
self.vm.set_console()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue