[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 01/33] iotests: use iotests.VM in 238
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 01/33] iotests: use iotests.VM in 238 |
Date: |
Fri, 8 Mar 2019 13:57:51 +0100 |
From: Stefan Hajnoczi <address@hidden>
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 <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/qemu-iotests/238 | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/tests/qemu-iotests/238 b/tests/qemu-iotests/238
index 688abc9acb..1c0a46fa90 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'))
--
2.20.1
- [Qemu-devel] [PULL 00/33] Block layer patches, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 01/33] iotests: use iotests.VM in 238,
Kevin Wolf <=
- [Qemu-devel] [PULL 02/33] qcow2: Default to 4KB for the qcow2 cache entry size, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 03/33] iotests: open notrun files in text mode, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 04/33] block: iterate_format with account of whitelisting, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 05/33] iotests: ask QEMU for supported formats, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 06/33] iotests: check whitelisted formats, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 13/33] qcow2: Extend spec for external data files, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 08/33] tests/bios-tables: Improve portability by searching bash in the $PATH, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 07/33] tests/multiboot: Improve portability by searching bash in the $PATH, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 12/33] qcow2: Simplify preallocation code, Kevin Wolf, 2019/03/08
- [Qemu-devel] [PULL 11/33] qemu-iotests: Test qcow2 preallocation modes, Kevin Wolf, 2019/03/08