qemu-iotests: fix 140 on s390x
v2 cover qemu-iotests: fix 140 on s390x
Yet another IDE-using test crept in (commit 16dee418). Fix it by disabling the implicit drive.
v1->v2:
- don't use any drive at all instead of replacing IDE with virtio-scsi
- split off virtio alias patch into separate series (no longer needed in this one)
- add patch to improve description of qemu-iotest 140
Sascha Silbe (2):
qemu-iotests: 140: don't use IDE drive
qemu-iotests: 140: make description slightly more verbose
tests/qemu-iotests/140 | 8 ++++++-- tests/qemu-iotests/140.out | 1 - 2 files changed, 6 insertions(+), 3 deletions(-)
Signature · 1 line
2.1.4
PATCH v2 1/2 qemu-iotests: 140: don't use IDE device
IDE is only implemented by very few architectures (mostly PC). The test doesn't actually need a block device attached to the BlockBackend, so just drop it and adjust the reference output accordingly.
---v1->v2:
- don't use any drive at all instead of replacing IDE with virtio-scsi
tests/qemu-iotests/140 | 2 +- tests/qemu-iotests/140.out | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
tests/qemu-iotests/140 +1 -1
@@ -49,7 +49,7 @@ _make_test_img 64k $QEMU_IO -c 'write -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io keep_stderr=y \ -_launch_qemu -drive if=ide,media=cdrom,id=drv,file="$TEST_IMG",format=$IMGFMT \ +_launch_qemu -drive if=none,media=cdrom,id=drv,file="$TEST_IMG",format=$IMGFMT \ 2> >(_filter_nbd) _send_qemu_cmd $QEMU_HANDLE \
tests/qemu-iotests/140.out +0 -1
@@ -7,7 +7,6 @@ wrote 65536/65536 bytes at offset 0 {"return": {}} read 65536/65536 bytes at offset 0 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drv", "tray-open": true}} {"return": {}} can't open device nbd+unix:///drv?socket=TEST_DIR/nbd: No export with name 'drv' available no file open, try 'help open'
Signature · 1 line
2.1.4
PATCH v2 2/2 qemu-iotests: 140: make description slightly more verbose
In reply to Sascha SilbeDescribe in a little more detail what the test is supposed to achieve.
---
Max, does this reflect your intentions well enough? I took the liberty of re-using some of your review comments to extend the description.
v1->v2: new patch
tests/qemu-iotests/140 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
tests/qemu-iotests/140 +5 -1
@@ -1,6 +1,10 @@ #!/bin/bash # -# Test case for ejecting a BB with an NBD server attached to it +# Test case for ejecting a BlockBackend with an NBD server attached to it +# +# Verify that the NBD server stops offering the drive when ejecting a +# BlockDriverState tree from a BlockBackend (that is, a medium from a +# drive) exposed via an NBD server. # # Copyright (C) 2016 Red Hat, Inc. #
Signature · 1 line
2.1.4
Re: [Qemu-devel] [PATCH v2 2/2] qemu-iotests: 140: make description slightly more verbose
Quoted 6 lines · Sascha Silbe
Describe in a little more detail what the test is supposed to achieve.
Signed-off-by Sascha Silbe <[email protected]>---
Max, does this reflect your intentions well enough? I took the liberty of re-using some of your review comments to extend the description.
Yes, it's fine, thanks.
Max
Max Reitz
AppliedQuoted 10 lines · Sascha Silbe
Yet another IDE-using test crept in (commit
16dee418). Fix it by disabling the implicit drive.
v1->v2:
- don't use any drive at all instead of replacing IDE with virtio-scsi
- split off virtio alias patch into separate series (no longer needed in this one)
- add patch to improve description of qemu-iotest 140
Quoted 7 lines
Sascha Silbe (2):
qemu-iotests: 140: don't use IDE drive
qemu-iotests: 140: make description slightly more verbosetests/qemu-iotests/140 | 8 ++++++-- tests/qemu-iotests/140.out | 1 - 2 files changed, 6 insertions(+), 3 deletions(-)
Thanks, applied to my block tree:
https://github.com/XanClic/qemu/commits/block
Max