aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-03-07 07:25:37 +0100
committerThomas Huth <thuth@redhat.com>2025-03-07 09:24:00 +0100
commit4dc11ee468df3ffdaa312a16b4ded3378133bb39 (patch)
tree265e007b64ccdd7bf14e0e96bbcd1729e27138b9
parent842721581fdbed45fa4738d02df8d28b1eaf28dd (diff)
downloadqemu-4dc11ee468df3ffdaa312a16b4ded3378133bb39.zip
qemu-4dc11ee468df3ffdaa312a16b4ded3378133bb39.tar.gz
qemu-4dc11ee468df3ffdaa312a16b4ded3378133bb39.tar.bz2
tests/functional/test_virtio_balloon: Only use KVM for running this test
The virtio_balloon test is currently hanging for unknown reasons when being run on the shared gitlab CI runners (which don't provide KVM, thus it's running in TCG mode there). All other functional tests that use the same asset (the Fedora 31 kernel) have already been marked to work only with KVM in the past, so those other tests are skipped on the shared gitlab CI runners. As long as the problem isn't fully understood and fixed, let's do the same with the virtio_balloon test to avoid that the CI is failing here. Message-ID: <20250307063904.1081961-1-thuth@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
-rwxr-xr-xtests/functional/test_virtio_balloon.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/functional/test_virtio_balloon.py b/tests/functional/test_virtio_balloon.py
index 082bf08..5877b6c 100755
--- a/tests/functional/test_virtio_balloon.py
+++ b/tests/functional/test_virtio_balloon.py
@@ -110,6 +110,7 @@ class VirtioBalloonx86(QemuSystemTest):
def test_virtio_balloon_stats(self):
self.set_machine('q35')
+ self.require_accelerator("kvm")
kernel_path = self.ASSET_KERNEL.fetch()
initrd_path = self.ASSET_INITRD.fetch()
diskimage_path = self.ASSET_DISKIMAGE.fetch()
@@ -122,7 +123,7 @@ class VirtioBalloonx86(QemuSystemTest):
# reset, we can reliably catch the clean stats again in BIOS
# phase before the guest OS launches
self.vm.add_args("-boot", "menu=on")
- self.vm.add_args("-machine", "q35,accel=kvm:tcg")
+ self.vm.add_args("-accel", "kvm")
self.vm.add_args("-device", "virtio-balloon,id=balloon")
self.vm.add_args('-drive',
f'file={diskimage_path},if=none,id=drv0,snapshot=on')