diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-03-24 13:34:50 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-03-27 08:59:35 +0100 |
| commit | dba0752f2c16f63825a06e9ebe4ac651bdc95b99 (patch) | |
| tree | 6cd4422f921bbade57fca57b42d6900c08acbd16 /tests/functional/test_aarch64_rme_virt.py | |
| parent | f0a6b3ec6d8dcaf2c4c1b159904a271e9eebd0df (diff) | |
| download | focaccia-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_aarch64_rme_virt.py')
| -rwxr-xr-x | tests/functional/test_aarch64_rme_virt.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/functional/test_aarch64_rme_virt.py b/tests/functional/test_aarch64_rme_virt.py index 38e01721a4..f4ad4d33d5 100755 --- a/tests/functional/test_aarch64_rme_virt.py +++ b/tests/functional/test_aarch64_rme_virt.py @@ -60,8 +60,10 @@ class Aarch64RMEVirtMachine(QemuSystemTest): # and launching a nested VM using it. def test_aarch64_rme_virt(self): self.set_machine('virt') - self.vm.set_console() self.require_accelerator('tcg') + self.require_netdev('user') + + self.vm.set_console() stack_path_tar_gz = self.ASSET_RME_STACK_VIRT.fetch() self.archive_extract(stack_path_tar_gz, format="tar") |