aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2019-02-27 14:44:13 +0000
committerKevin Wolf <kwolf@redhat.com>2019-03-08 12:26:45 +0100
commitb74b1adef00504c0df2d9600cec9ea824349952c (patch)
treef901ecef9bca74e1aa5a52489d3fcb5dfc53dee0 /tests
parentc4e0780ed1ffd056f205348d387a61b4136a45df (diff)
downloadqemu-b74b1adef00504c0df2d9600cec9ea824349952c.zip
qemu-b74b1adef00504c0df2d9600cec9ea824349952c.tar.gz
qemu-b74b1adef00504c0df2d9600cec9ea824349952c.tar.bz2
iotests: use iotests.VM in 238
Test 238 does not require the kvm accelerator. Using the qtest accelerator allows the test to run in both non-kvm and non-tcg environments. iotests.VM implicitly uses the qtest accelerator and is really the class that this test should be using. Switch to that instead of qemu.QEMUMachine. Suggested-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/qemu-iotests/2387
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/qemu-iotests/238 b/tests/qemu-iotests/238
index 688abc9..1c0a46f 100755
--- a/tests/qemu-iotests/238
+++ b/tests/qemu-iotests/238
@@ -23,17 +23,12 @@ import os
import iotests
from iotests import log
-sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
-
-from qemu import QEMUMachine
-
if iotests.qemu_default_machine == 's390-ccw-virtio':
virtio_scsi_device = 'virtio-scsi-ccw'
else:
virtio_scsi_device = 'virtio-scsi-pci'
-vm = QEMUMachine(iotests.qemu_prog)
-vm.add_args('-machine', 'accel=kvm')
+vm = iotests.VM()
vm.launch()
log(vm.qmp('blockdev-add', node_name='hd0', driver='null-co'))