Skip to contentSkip to conversation

iotests: make 235 work on s390 (and others)

PATCH Applied Christian Borntraeger 3 participants 3 messages Dec 5, 2018 – Dec 7, 2018

lore
Share & tools
lore
#0 lore raw

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
index da044ed34e..d6edd97ab4 100755
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

CC qemu-stable
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
Applied
#2 lore raw

Am 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.

CC qemu-stable
Quoted 8 lines
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

Thanks, applied to the block-next branch.

Kevin