iotests: make 235 work on s390 (and others)
PATCH 1/1 iotests: make 235 work on s390 (and others)
"-machine pc" will not work all architectures. Lets fall back to the default machine by not specifying it.
In addition we also need to specify -no-shutdown on s390 as qemu will exit otherwise.
--- tests/qemu-iotests/235 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
tests/qemu-iotests/235 +3 -1
@@ -49,7 +49,9 @@ qemu_img_create('-f', iotests.imgfmt, '-o', 'preallocation=metadata', disk, str(size)) vm = QEMUMachine(iotests.qemu_prog) -vm.add_args('-machine', 'pc,accel=kvm') +vm.add_args('-machine', 'accel=kvm') +if iotests.qemu_default_machine == 's390-ccw-virtio': + vm.add_args('-no-shutdown') vm.add_args('-drive', 'id=src,file=' + disk) vm.launch()
Signature · 1 line
2.19.1
Quoted 7 lines · Christian Borntraeger
"-machine pc" will not work all architectures. Lets fall back to the default machine by not specifying it.
In addition we also need to specify -no-shutdown on s390 as qemu will exit otherwise.
Signed-off-by Christian Borntraeger <[email protected]>
Quoted 3 lines
--- tests/qemu-iotests/235 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Too late for 3.1; for that, we can just document that there are known iotests failures under some configurations
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Kevin Wolf
AppliedAm 05.12.2018 um 16:34 hat Eric Blake geschrieben:
Quoted 11 lines · Christian Borntraeger
Quoted 7 lines
"-machine pc" will not work all architectures. Lets fall back to the default machine by not specifying it.
In addition we also need to specify -no-shutdown on s390 as qemu will exit otherwise.
Signed-off-by Christian Borntraeger <[email protected]>CC qemu-stable
Quoted 8 lines
Quoted 3 lines
--- tests/qemu-iotests/235 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Reviewed-by Eric Blake <[email protected]>Too late for 3.1; for that, we can just document that there are known iotests failures under some configurations
Thanks, applied to the block-next branch.
Kevin