]> git.proxmox.com Git - mirror_qemu.git/commitdiff
tests/qemu-iotests/235: Allow fallback to tcg
authorThomas Huth <thuth@redhat.com>
Wed, 27 Mar 2019 09:23:42 +0000 (10:23 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 2 Apr 2019 10:04:56 +0000 (12:04 +0200)
iotest 235 currently only works with KVM - this is bad for systems where
it is not available, e.g. CI pipelines. The test also works when using
"tcg" as accelerator, so we can simply add that to the list of accelerators,
too.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/235

index 75c203b30c7dfe07e8a8e473db6faddced3ce547..2b6a8c13beac68e36e3ced737c064d2afb135a24 100755 (executable)
@@ -49,7 +49,7 @@ qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', disk,
                 str(size))
 
 vm = QEMUMachine(iotests.qemu_prog)
-vm.add_args('-machine', 'accel=kvm')
+vm.add_args('-machine', 'accel=kvm:tcg')
 if iotests.qemu_default_machine == 's390-ccw-virtio':
         vm.add_args('-no-shutdown')
 vm.add_args('-drive', 'id=src,file=' + disk)