Skip to contentSkip to conversation

Update tests/qemu-iotests failing cases for the s390 platform

PATCH Superseded Bo Tu 3 participants 17 messages Nov 4, 2015 – Nov 26, 2015

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Bo Tu

author
#0 lore raw

v2 cover Update tests/qemu-iotests failing cases for the s390 platform

v2:
1. Refine common.config via changing the definition of default_alias_machine and default_machine
2. Add Reviewed-by of Eric Blake for common.config

v1:
1. Refine common.config
2. Update the output file for test 051 based on its current output for s390 platform, add a pc specific output file for test 051
3. checkpatch.pl reports invaid UTF-8 error for 051 patch, because its output files contain some non-text data
4. Add the parameter of "-no-shutdown -machine accel=kvm" for s390-ccw-virtio for test 068
5. Disable VNC server for test 120

Bo Tu (4):
qemu-iotests: refine common.config
qemu-iotests: s390x: fix test 051
qemu-iotests: s390x: fix test 068
qemu-iotests: disable VNC server for test 120

 tests/qemu-iotests/051           |  99 +++++----
 tests/qemu-iotests/051.out       | 143 +++----------
 tests/qemu-iotests/051.pc.out    | 422 +++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/068           |  14 +-
 tests/qemu-iotests/120           |   2 +-
 tests/qemu-iotests/common.config |   9 +-
 6 files changed, 532 insertions(+), 157 deletions(-)
 create mode 100644 tests/qemu-iotests/051.pc.out
Signature · 1 line
2.3.0
author
#1 lore raw

PATCH v2 1/4 qemu-iotests: refine common.config

Replacing sed with awk, then it's easier to read. Replacing "[ ! -z "$default_alias_machine" ]" with "[[ $default_alias_machine ]]", then it's slightly shorter.

---
 tests/qemu-iotests/common.config | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
tests/qemu-iotests/common.config +4 -5
index 596bb2b..08f4b4e 100644
@@ -128,11 +128,10 @@ export QEMU_IMG=_qemu_img_wrapper
 export QEMU_IO=_qemu_io_wrapper
 export QEMU_NBD=_qemu_nbd_wrapper
 
-default_machine=$($QEMU -machine \? | awk '/(default)/{print $1}')
-default_alias_machine=$($QEMU -machine \? |\
-    awk -v var_default_machine="$default_machine"\)\
-    '{if ($(NF-2)=="(alias"&&$(NF-1)=="of"&&$(NF)==var_default_machine){print $1}}')
-if [ ! -z "$default_alias_machine" ]; then
+default_machine=$($QEMU -machine help | sed -n '/(default)/ s/ .*//p')
+default_alias_machine=$($QEMU -machine help | \
+   sed -n "/(alias of $default_machine)"/' { s/ .*//p; q; }')
+if [[ "$default_alias_machine" ]]; then
     default_machine="$default_alias_machine"
 fi
 
Signature · 1 line
2.3.0
Reviewed-by on v2 1/4
#2 lore raw

Re: [Qemu-devel] [PATCH v2 1/4] qemu-iotests: refine common.config

Quoted 1 line · Bo Tu

Replacing sed with awk, then it's easier to read.

I think you meant "awk with sed".

Quoted 17 lines

Replacing "[ ! -z "$default_alias_machine" ]" with "[[ $default_alias_machine ]]", then it's slightly shorter.

---
 tests/qemu-iotests/common.config | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
tests/qemu-iotests/common.config +0 -0
index 596bb2b..08f4b4e 100644
@@ -128,11 +128,10 @@ export QEMU_IMG=_qemu_img_wrapper
 export QEMU_IO=_qemu_io_wrapper

tests/qemu-iotests/common.config export QEMU_IMG=_qemu_img_wrapper · line 133

Quoted 10 lines
tests/qemu-iotests/common.config +3 -5
 export QEMU_NBD=_qemu_nbd_wrapper
 
-default_machine=$($QEMU -machine \? | awk '/(default)/{print $1}')
-default_alias_machine=$($QEMU -machine \? |\
-    awk -v var_default_machine="$default_machine"\)\
-    '{if ($(NF-2)=="(alias"&&$(NF-1)=="of"&&$(NF)==var_default_machine){print $1}}')
-if [ ! -z "$default_alias_machine" ]; then
+default_machine=$($QEMU -machine help | sed -n '/(default)/ s/ .*//p')
+default_alias_machine=$($QEMU -machine help | \
+   sed -n "/(alias of $default_machine)"/' { s/ .*//p; q; }')

Could be shortened to "/(alias of $default_machine)/ { s/ .*//p; q; }" (superfluous quotation marks), but that doesn't make it less correct.

With the commit message fixed:

Quoted 5 lines
tests/qemu-iotests/common.config +1 -0
+if [[ "$default_alias_machine" ]]; then
     default_machine="$default_alias_machine"
 fi
 
author
#3 lore raw

Re: [Qemu-devel] [PATCH v2 1/4] qemu-iotests: refine common.config

Hi Max:

Quoted 4 lines · Max Reitz
Quoted 1 line · Bo Tu

Replacing sed with awk, then it's easier to read.

I think you meant "awk with sed".

It's my fault. thanks :-)

Quoted 20 lines
Quoted 20 lines

Replacing "[ ! -z "$default_alias_machine" ]" with "[[ $default_alias_machine ]]", then it's slightly shorter.

---
  tests/qemu-iotests/common.config | 9 ++++-----
  1 file changed, 4 insertions(+), 5 deletions(-)
tests/qemu-iotests/common.config +0 -0
index 596bb2b..08f4b4e 100644
@@ -128,11 +128,10 @@ export QEMU_IMG=_qemu_img_wrapper
  export QEMU_IO=_qemu_io_wrapper
  export QEMU_NBD=_qemu_nbd_wrapper
 
Quoted 11 lines

tests/qemu-iotests/common.config export QEMU_IMG=_qemu_img_wrapper · line 133

Quoted 8 lines
tests/qemu-iotests/common.config +3 -5
-default_machine=$($QEMU -machine \? | awk '/(default)/{print $1}')
-default_alias_machine=$($QEMU -machine \? |\
-    awk -v var_default_machine="$default_machine"\)\
-    '{if ($(NF-2)=="(alias"&&$(NF-1)=="of"&&$(NF)==var_default_machine){print $1}}')
-if [ ! -z "$default_alias_machine" ]; then
+default_machine=$($QEMU -machine help | sed -n '/(default)/ s/ .*//p')
+default_alias_machine=$($QEMU -machine help | \
+   sed -n "/(alias of $default_machine)"/' { s/ .*//p; q; }')

Could be shortened to "/(alias of $default_machine)/ { s/ .*//p; q; }" (superfluous quotation marks), but that doesn't make it less correct.

Yes. it can reduce two quotation marks. Good suggestion.

Quoted 5 lines

With the commit message fixed:

I'll add it in the patch of v3.

Quoted 8 lines
Quoted 6 lines
tests/qemu-iotests/common.config +1 -0
+if [[ "$default_alias_machine" ]]; then
      default_machine="$default_alias_machine"
  fi
 
author
#4 lore raw

PATCH v2 2/4 qemu-iotests: s390x: fix test 051

In reply to Bo Tu

The tests for device type "ide_cd" should only be tested for the pc platform.
The default device id of hard disk on the s390 platform differs to that of the x86 platform. A new variable device_id is defined and "virtio0" set for the s390 platform. A x86 platform specific output file is also needed.
Warning message expected for s390x when drive without device.

---
 tests/qemu-iotests/051        |  99 ++++++----
 tests/qemu-iotests/051.out    | 143 +++-----------
 tests/qemu-iotests/051.pc.out | 422 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 515 insertions(+), 149 deletions(-)
 create mode 100644 tests/qemu-iotests/051.pc.out
tests/qemu-iotests/051 +65 -34
index 17dbf04..2bc2193 100755
@@ -148,33 +148,49 @@ run_qemu -drive if=ide
 run_qemu -drive if=virtio
 run_qemu -drive if=scsi
 
-run_qemu -drive if=none,id=disk -device ide-cd,drive=disk
-run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
-
-run_qemu -drive if=none,id=disk -device ide-drive,drive=disk
-run_qemu -drive if=none,id=disk -device ide-hd,drive=disk
-run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
-run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
+case "$QEMU_DEFAULT_MACHINE" in
+    pc)
+        run_qemu -drive if=none,id=disk -device ide-cd,drive=disk
+        run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
+        run_qemu -drive if=none,id=disk -device ide-drive,drive=disk
+        run_qemu -drive if=none,id=disk -device ide-hd,drive=disk
+        run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
+        run_qemu -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
+        ;;
+     *)
+        ;;
+esac
 
 echo
 echo === Read-only ===
 echo
 
-run_qemu -drive file="$TEST_IMG",if=floppy,readonly=on
-run_qemu -drive file="$TEST_IMG",if=ide,media=cdrom,readonly=on
-run_qemu -drive file="$TEST_IMG",if=scsi,media=cdrom,readonly=on
+case "$QEMU_DEFAULT_MACHINE" in
+    pc)
+        run_qemu -drive file="$TEST_IMG",if=floppy,readonly=on
+        run_qemu -drive file="$TEST_IMG",if=ide,media=cdrom,readonly=on
+        run_qemu -drive file="$TEST_IMG",if=scsi,media=cdrom,readonly=on
+        run_qemu -drive file="$TEST_IMG",if=ide,readonly=on
+        ;;
+     *)
+        ;;
+esac
 
-run_qemu -drive file="$TEST_IMG",if=ide,readonly=on
 run_qemu -drive file="$TEST_IMG",if=virtio,readonly=on
 run_qemu -drive file="$TEST_IMG",if=scsi,readonly=on
 
-run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-cd,drive=disk
-run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
-
-run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-drive,drive=disk
-run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-hd,drive=disk
-run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
-run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
+case "$QEMU_DEFAULT_MACHINE" in
+    pc)
+        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-cd,drive=disk
+        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
+        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-drive,drive=disk
+        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device ide-hd,drive=disk
+        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
+        run_qemu -drive file="$TEST_IMG",if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
+        ;;
+     *)
+        ;;
+esac
 
 echo
 echo === Cache modes ===
@@ -183,12 +199,18 @@ echo
 # Cannot use the test image because cache=none might not work on the host FS
 # Use cdrom so that we won't get errors about missing media
 
-run_qemu -drive media=cdrom,cache=none
-run_qemu -drive media=cdrom,cache=directsync
-run_qemu -drive media=cdrom,cache=writeback
-run_qemu -drive media=cdrom,cache=writethrough
-run_qemu -drive media=cdrom,cache=unsafe
-run_qemu -drive media=cdrom,cache=invalid_value
+case "$QEMU_DEFAULT_MACHINE" in
+    pc)
+        run_qemu -drive media=cdrom,cache=none
+        run_qemu -drive media=cdrom,cache=directsync
+        run_qemu -drive media=cdrom,cache=writeback
+        run_qemu -drive media=cdrom,cache=writethrough
+        run_qemu -drive media=cdrom,cache=unsafe
+        run_qemu -drive media=cdrom,cache=invalid_value
+        ;;
+     *)
+        ;;
+esac
 
 echo
 echo === Specifying the protocol layer ===
@@ -251,28 +273,37 @@ echo
 echo === Snapshot mode ===
 echo
 
+case "$QEMU_DEFAULT_MACHINE" in
+    pc)
+        device_id="ide0-hd0"
+        ;;
+    s390|s390-ccw-virtio)
+        device_id="virtio0"
+        ;;
+esac
+
 $QEMU_IO -c "write -P 0x11 0 4k" "$TEST_IMG" | _filter_qemu_io
 
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2,snapshot=on | _filter_qemu_io
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2 -snapshot | _filter_qemu_io
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="file:$TEST_IMG" -snapshot | _filter_qemu_io
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="file:$TEST_IMG",snapshot=on | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2,snapshot=on | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file.filename="$TEST_IMG",driver=qcow2 -snapshot | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="file:$TEST_IMG" -snapshot | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="file:$TEST_IMG",snapshot=on | _filter_qemu_io
 
 # Opening a read-only file r/w with snapshot=on
 chmod u-w "$TEST_IMG"
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG" -snapshot | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io
 chmod u+w "$TEST_IMG"
 
 $QEMU_IO -c "read -P 0x11 0 4k" "$TEST_IMG" | _filter_qemu_io
 
-echo 'qemu-io ide0-hd0 "write -P 0x22 0 4k"' | run_qemu -drive file="$TEST_IMG",snapshot=off | _filter_qemu_io
+echo "qemu-io $device_id \"write -P 0x22 0 4k\"" | run_qemu -drive file="$TEST_IMG",snapshot=off | _filter_qemu_io
 
 $QEMU_IO -c "read -P 0x22 0 4k" "$TEST_IMG" | _filter_qemu_io
 
-echo -e 'qemu-io ide0-hd0 "write -P 0x33 0 4k"\ncommit ide0-hd0' | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io
+echo -e "qemu-io $device_id \"write -P 0x33 0 4k\"\ncommit $device_id" | run_qemu -drive file="$TEST_IMG",snapshot=on | _filter_qemu_io
 
 $QEMU_IO -c "read -P 0x33 0 4k" "$TEST_IMG" | _filter_qemu_io
 
tests/qemu-iotests/051.out +22 -109

235 lines not on this page · raw message

Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on
QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io vqemu-io viqemu-io virqemu-io virtqemu-io virtiqemu-io virtioqemu-io virtio0qemu-io virtio0 qemu-io virtio0 "qemu-io virtio0 "wqemu-io virtio0 "wrqemu-io virtio0 "wriqemu-io virtio0 "writ!
qemu-io virtio0 "writeqemu-io virtio0 "write qemu-io virtio0 "write -qemu-io virtio0 "write -Pqemu-io virtio0 "write -P qemu-io virtio0 "write -P 0qemu-io virtio0 "write -P 0xqemu-io virtio0 "write -P 0x2qemu-io virtio0 "write -P 0x22qemu-io virtio0 "wr! ite -P 0x22 qemu-io virtio0 "write -P 0x22 0qemu-io virtio0 "write -P 0x22 0 qemu-io virtio0 "write -P 0x22 0 4qemu-io virtio0 "write -P 0x22 0 4kqemu-io virtio0 "write -P 0x22 0 4k"
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
(qemu) qququiquit

Testing: -drive file=TEST_DIR/t.qcow2 -snapshot
QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io vqemu-io viqemu-io virqemu-io virtqemu-io virtiqemu-io virtioqemu-io virtio0qemu-io virtio0 qemu-io virtio0 "qemu-io virtio0 "wqemu-io virtio0 "wrqemu-io virtio0 "wriqemu-io virtio0 "writ!
qemu-io virtio0 "writeqemu-io virtio0 "write qemu-io virtio0 "write -qemu-io virtio0 "write -Pqemu-io virtio0 "write -P qemu-io virtio0 "write -P 0qemu-io virtio0 "write -P 0xqemu-io virtio0 "write -P 0x2qemu-io virtio0 "write -P 0x22qemu-io virtio0 "wr! ite -P 0x22 qemu-io virtio0 "write -P 0x22 0qemu-io virtio0 "write -P 0x22 0 qemu-io virtio0 "write -P 0x22 0 4qemu-io virtio0 "write -P 0x22 0 4kqemu-io virtio0 "write -P 0x22 0 4k"
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
(qemu) qququiquit

Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io vqemu-io viqemu-io virqemu-io virtqemu-io virtiqemu-io virtioqemu-io virtio0qemu-io virtio0 qemu-io virtio0 "qemu-io virtio0 "wqemu-io virtio0 "wrqemu-io virtio0 "wriqemu-io virtio0 "writ!
qemu-io virtio0 "writeqemu-io virtio0 "write qemu-io virtio0 "write -qemu-io virtio0 "write -Pqemu-io virtio0 "write -P qemu-io virtio0 "write -P 0qemu-io virtio0 "write -P 0xqemu-io virtio0 "write -P 0x2qemu-io virtio0 "write -P 0x22qemu-io virtio0 "wr! ite -P 0x22 qemu-io virtio0 "write -P 0x22 0qemu-io virtio0 "write -P 0x22 0 qemu-io virtio0 "write -P 0x22 0 4qemu-io virtio0 "write -P 0x22 0 4kqemu-io virtio0 "write -P 0x22 0 4k"
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
(qemu) qququiquit
@@ -402,7 +315,7 @@ read 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off
QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io vqemu-io viqemu-io virqemu-io virtqemu-io virtiqemu-io virtioqemu-io virtio0qemu-io virtio0 qemu-io virtio0 "qemu-io virtio0 "wqemu-io virtio0 "wrqemu-io virtio0 "wriqemu-io virtio0 "writ!
qemu-io virtio0 "writeqemu-io virtio0 "write qemu-io virtio0 "write -qemu-io virtio0 "write -Pqemu-io virtio0 "write -P qemu-io virtio0 "write -P 0qemu-io virtio0 "write -P 0xqemu-io virtio0 "write -P 0x2qemu-io virtio0 "write -P 0x22qemu-io virtio0 "wr! ite -P 0x22 qemu-io virtio0 "write -P 0x22 0qemu-io virtio0 "write -P 0x22 0 qemu-io virtio0 "write -P 0x22 0 4qemu-io virtio0 "write -P 0x22 0 4kqemu-io virtio0 "write -P 0x22 0 4k"
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
(qemu) qququiquit
@@ -411,10 +324,10 @@ read 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x3qemu-io ide0-hd0 "w! rite -P 0x33qemu-io ide0-hd0 "write -P 0x33 qemu-io ide0-hd0 "write -P 0x33 0qemu-io ide0-hd0 "write -P 0x33 0 qemu-io ide0-hd0 "write -P 0x33 0 4qemu-io ide0-hd0 "write -P 0x33 0 4kqemu-io ide0-hd0 "write -P 0x33 0 4k"
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io vqemu-io viqemu-io virqemu-io virtqemu-io virtiqemu-io virtioqemu-io virtio0qemu-io virtio0 qemu-io virtio0 "qemu-io virtio0 "wqemu-io virtio0 "wrqemu-io virtio0 "wriqemu-io virtio0 "writ!
qemu-io virtio0 "writeqemu-io virtio0 "write qemu-io virtio0 "write -qemu-io virtio0 "write -Pqemu-io virtio0 "write -P qemu-io virtio0 "write -P 0qemu-io virtio0 "write -P 0xqemu-io virtio0 "write -P 0x3qemu-io virtio0 "write -P 0x33qemu-io virtio0 "wr! ite -P 0x33 qemu-io virtio0 "write -P 0x33 0qemu-io virtio0 "write -P 0x33 0 qemu-io virtio0 "write -P 0x33 0 4qemu-io virtio0 "write -P 0x33 0 4kqemu-io virtio0 "write -P 0x33 0 4k"
wrote 4096/4096 bytes at offset 0
4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-(qemu) ccocomcommcommicommitcommit commit icommit idcommit idecommit ide0commit ide0-commit ide0-hcommit ide0-hdcommit ide0-hd0
+(qemu) ccocomcommcommicommitcommit commit vcommit vicommit vircommit virtcommit virticommit virtiocommit virtio0
(qemu) qququiquit

read 4096/4096 bytes at offset 0

tests/qemu-iotests/051.pc.out new file +347 -0

347 lines not on this page · raw message

qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2 -snapshot
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+Testing: -drive file=file:TEST_DIR/t.qcow2 -snapshot
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+Testing: -drive file=TEST_DIR/t.qcow2 -snapshot
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+read 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x2qemu-io ide0-hd0 "w! rite -P 0x22qemu-io ide0-hd0 "write -P 0x22 qemu-io ide0-hd0 "write -P 0x22 0qemu-io ide0-hd0 "write -P 0x22 0 qemu-io ide0-hd0 "write -P 0x22 0 4qemu-io ide0-hd0 "write -P 0x22 0 4kqemu-io ide0-hd0 "write -P 0x22 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) qququiquit
+
+read 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on
+QEMU X.Y.Z monitor - type 'help' for more information
+(qemu) qqeqemqemuqemu-qemu-iqemu-ioqemu-io qemu-io iqemu-io idqemu-io ideqemu-io ide0qemu-io ide0-qemu-io ide0-hqemu-io ide0-hdqemu-io ide0-hd0qemu-io ide0-hd0 qemu-io ide0-hd0 "qemu-io ide0-hd0 "wqemu-io ide0-hd0 "wrqemu-io ide0-hd0 "wri!
qemu-io ide0-hd0 "writqemu-io ide0-hd0 "writeqemu-io ide0-hd0 "write qemu-io ide0-hd0 "write -qemu-io ide0-hd0 "write -Pqemu-io ide0-hd0 "write -P qemu-io ide0-hd0 "write -P 0qemu-io ide0-hd0 "write -P 0xqemu-io ide0-hd0 "write -P 0x3qemu-io ide0-hd0 "w! rite -P 0x33qemu-io ide0-hd0 "write -P 0x33 qemu-io ide0-hd0 "write -P 0x33 0qemu-io ide0-hd0 "write -P 0x33 0 qemu-io ide0-hd0 "write -P 0x33 0 4qemu-io ide0-hd0 "write -P 0x33 0 4kqemu-io ide0-hd0 "write -P 0x33 0 4k"
+wrote 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+(qemu) ccocomcommcommicommitcommit commit icommit idcommit idecommit ide0commit ide0-commit ide0-hcommit ide0-hdcommit ide0-hd0
+(qemu) qququiquit
+
+read 4096/4096 bytes at offset 0
+4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
+*** done

Signature · 1 line
2.3.0
#5 lore raw

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

Quoted 17 lines · Bo Tu

The tests for device type "ide_cd" should only be tested for the pc platform.
The default device id of hard disk on the s390 platform differs to that of the x86 platform. A new variable device_id is defined and "virtio0" set for the s390 platform. A x86 platform specific output file is also needed.
Warning message expected for s390x when drive without device.

---
 tests/qemu-iotests/051        |  99 ++++++----
 tests/qemu-iotests/051.out    | 143 +++-----------
 tests/qemu-iotests/051.pc.out | 422 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 515 insertions(+), 149 deletions(-)
 create mode 100644 tests/qemu-iotests/051.pc.out

[...]

Quoted 4 lines
tests/qemu-iotests/051.out +0 -0
index 7765aa0..d17c969 100644

[...]

tests/qemu-iotests/051.out QEMU X.Y.Z monitor - type 'help' for more information · line 113

Quoted 7 lines
tests/qemu-iotests/051.out +2 -1
@@ -109,20 +109,23 @@ QEMU X.Y.Z monitor - type 'help' for more information
 
 Testing: -drive if=floppy
 QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+(qemu) Warning: Orphaned drive without device: id=floppy0,file=,if=floppy,bus=0,unit=0
+qququiquit

I'd still like these warnings to be filtered out (as I wrote in my reply to the original RFC's v4, and as was done in later versions of that RFC (the _filter_orphan function e.g. in
http://lists.nongnu.org/archive/html/qemu-devel/2015-05/msg04816.html).

Looks good other than that.

Max

author
#6 lore raw

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

Hi Max:

Quoted 30 lines · Max Reitz
Quoted 17 lines · Bo Tu

The tests for device type "ide_cd" should only be tested for the pc platform.
The default device id of hard disk on the s390 platform differs to that of the x86 platform. A new variable device_id is defined and "virtio0" set for the s390 platform. A x86 platform specific output file is also needed.
Warning message expected for s390x when drive without device.

---
  tests/qemu-iotests/051        |  99 ++++++----
  tests/qemu-iotests/051.out    | 143 +++-----------
  tests/qemu-iotests/051.pc.out | 422 ++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 515 insertions(+), 149 deletions(-)

create mode 100644 tests/qemu-iotests/051.pc.out

[...]

Quoted 4 lines
tests/qemu-iotests/051.out +0 -0
index 7765aa0..d17c969 100644

[...]

Quoted 2 lines
tests/qemu-iotests/051.out +0 -0
@@ -109,20 +109,23 @@ QEMU X.Y.Z monitor - type 'help' for more information
 
Quoted 11 lines

tests/qemu-iotests/051.out QEMU X.Y.Z monitor - type 'help' for more information · line 113

Quoted 5 lines
tests/qemu-iotests/051.out +2 -1
  Testing: -drive if=floppy
  QEMU X.Y.Z monitor - type 'help' for more information
-(qemu) qququiquit
+(qemu) Warning: Orphaned drive without device: id=floppy0,file=,if=floppy,bus=0,unit=0
+qququiquit

I'd still like these warnings to be filtered out (as I wrote in my reply to the original RFC's v4, and as was done in later versions of that RFC (the _filter_orphan function e.g. in
http://lists.nongnu.org/archive/html/qemu-devel/2015-05/msg04816.html).

I did more investigation about this.
"Warning: Orphaned drive without device:.*" is expected for s390x, when we define a drive without device, also this drive is not default and interface is not "none". Please refer line 228,229 in blockdev.c:

    218 bool drive_check_orphaned(void)
    219 {
    220     BlockBackend *blk;
    221     DriveInfo *dinfo;
    222     bool rs = false;
    223
    224     for (blk = blk_next(NULL); blk; blk = blk_next(blk)) {
    225         dinfo = blk_legacy_dinfo(blk);
    226         /* If dinfo->bdrv->dev is NULL, it has no device 
attached. */
    227         /* Unless this is a default drive, this may be an 
oversight. */
    228         if (!blk_get_attached_dev(blk) && !dinfo->is_default &&
    229             dinfo->type != IF_NONE) {
    230             fprintf(stderr, "Warning: Orphaned drive without 
device: "
    231                     "id=%s,file=%s,if=%s,bus=%d,unit=%d\n",
    232                     blk_name(blk), blk_bs(blk)->filename, 
if_name[dinfo->type],
    233                     dinfo->bus, dinfo->unit);
    234             rs = true;
    235         }
    236     }

For example, "run_qemu -drive if=scsi" will generate orphan warning message for s390x, but "run_qemu -drive if=virtio" will not generate orphan warning message, since virtio is a default drive.

so I removed _filter_orphan() in common.filter, and added orphan warning message(ie: for the output of "run_qemu -drive if=scsi") in output file for s390x. thanks

Quoted 4 lines

Looks good other than that.

Max

#7 lore raw

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

Quoted 76 lines · tu bo

Hi Max:

Quoted 32 lines · Max Reitz
Quoted 18 lines · Bo Tu

The tests for device type "ide_cd" should only be tested for the pc platform.
The default device id of hard disk on the s390 platform differs to that of the x86 platform. A new variable device_id is defined and "virtio0" set for the s390 platform. A x86 platform specific output file is also needed.
Warning message expected for s390x when drive without device.

---
  tests/qemu-iotests/051        |  99 ++++++----
  tests/qemu-iotests/051.out    | 143 +++-----------
  tests/qemu-iotests/051.pc.out | 422
++++++++++++++++++++++++++++++++++++++++++
  3 files changed, 515 insertions(+), 149 deletions(-)

create mode 100644 tests/qemu-iotests/051.pc.out

[...]

Quoted 4 lines
tests/qemu-iotests/051.out +0 -0
index 7765aa0..d17c969 100644

[...]

Quoted 3 lines
tests/qemu-iotests/051.out +0 -0
@@ -109,20 +109,23 @@ QEMU X.Y.Z monitor - type 'help' for more

information

Quoted 12 lines
Quoted 6 lines

Testing: -drive if=floppy
QEMU X.Y.Z monitor - type 'help' for more information

tests/qemu-iotests/051.out +1 -1
-(qemu) qququiquit
+(qemu) Warning: Orphaned drive without device:

id=floppy0,file=,if=floppy,bus=0,unit=0
+qququiquit

I'd still like these warnings to be filtered out (as I wrote in my reply to the original RFC's v4, and as was done in later versions of that RFC (the _filter_orphan function e.g. in
http://lists.nongnu.org/archive/html/qemu-devel/2015-05/msg04816.html).

I did more investigation about this.
"Warning: Orphaned drive without device:.*" is expected for s390x, when we define a drive without device, also this drive is not default and interface is not "none". Please refer line 228,229 in blockdev.c:

    218 bool drive_check_orphaned(void)
    219 {
    220     BlockBackend *blk;
    221     DriveInfo *dinfo;
    222     bool rs = false;
    223
    224     for (blk = blk_next(NULL); blk; blk = blk_next(blk)) {
    225         dinfo = blk_legacy_dinfo(blk);
    226         /* If dinfo->bdrv->dev is NULL, it has no device
attached. */
    227         /* Unless this is a default drive, this may be an
oversight. */
    228         if (!blk_get_attached_dev(blk) && !dinfo->is_default &&
    229             dinfo->type != IF_NONE) {
    230             fprintf(stderr, "Warning: Orphaned drive without
device: "
    231                     "id=%s,file=%s,if=%s,bus=%d,unit=%d\n",
    232                     blk_name(blk), blk_bs(blk)->filename,
if_name[dinfo->type],
    233                     dinfo->bus, dinfo->unit);
    234             rs = true;
    235         }
    236     }
Quoted 7 lines

For example, "run_qemu -drive if=scsi" will generate orphan warning message for s390x, but "run_qemu -drive if=virtio" will not generate orphan warning message, since virtio is a default drive.

so I removed _filter_orphan() in common.filter, and added orphan warning message(ie: for the output of "run_qemu -drive if=scsi") in
output file for s390x. thanks

OK, so it is expected for s390x; however, this is strictly speaking not the output file for s390x but for any platform but PC. That's why I'd rather not have it in this “generic” reference output.

This patch already assumes that the iotests only support s390 and PC (hunk @@ -251,28 +273,37 @@ in 051 adds a case statement which knows only these two cases). Therefore, I would be fine with renaming this reference output file to "051.s390.out" with a copy "051.s390-ccw-virtio.out" and just removing the generic "051.out". Then you can keep the warnings in.

(Or you filter the warnings out and keep it as "051.out".)

Max

author
#8 lore raw

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

Hi Max, Sascha:

Quoted 89 lines · Max Reitz
Quoted 76 lines · tu bo

Hi Max:

Quoted 32 lines · Max Reitz
Quoted 18 lines · Bo Tu

The tests for device type "ide_cd" should only be tested for the pc platform.
The default device id of hard disk on the s390 platform differs to that of the x86 platform. A new variable device_id is defined and "virtio0" set for the s390 platform. A x86 platform specific output file is also needed.
Warning message expected for s390x when drive without device.

---
   tests/qemu-iotests/051        |  99 ++++++----
   tests/qemu-iotests/051.out    | 143 +++-----------
   tests/qemu-iotests/051.pc.out | 422
++++++++++++++++++++++++++++++++++++++++++
   3 files changed, 515 insertions(+), 149 deletions(-)

create mode 100644 tests/qemu-iotests/051.pc.out

[...]

Quoted 4 lines
tests/qemu-iotests/051.out +0 -0
index 7765aa0..d17c969 100644

[...]

Quoted 3 lines
tests/qemu-iotests/051.out +0 -0
@@ -109,20 +109,23 @@ QEMU X.Y.Z monitor - type 'help' for more

information

Quoted 12 lines
Quoted 6 lines

Testing: -drive if=floppy
QEMU X.Y.Z monitor - type 'help' for more information

tests/qemu-iotests/051.out +1 -1
-(qemu) qququiquit
+(qemu) Warning: Orphaned drive without device:

id=floppy0,file=,if=floppy,bus=0,unit=0
+qququiquit

I'd still like these warnings to be filtered out (as I wrote in my reply to the original RFC's v4, and as was done in later versions of that RFC (the _filter_orphan function e.g. in
http://lists.nongnu.org/archive/html/qemu-devel/2015-05/msg04816.html).

I did more investigation about this.
"Warning: Orphaned drive without device:.*" is expected for s390x, when we define a drive without device, also this drive is not default and interface is not "none". Please refer line 228,229 in blockdev.c:

     218 bool drive_check_orphaned(void)
     219 {
     220     BlockBackend *blk;
     221     DriveInfo *dinfo;
     222     bool rs = false;
     223
     224     for (blk = blk_next(NULL); blk; blk = blk_next(blk)) {
     225         dinfo = blk_legacy_dinfo(blk);
     226         /* If dinfo->bdrv->dev is NULL, it has no device
attached. */
     227         /* Unless this is a default drive, this may be an
oversight. */
     228         if (!blk_get_attached_dev(blk) && !dinfo->is_default &&
     229             dinfo->type != IF_NONE) {
     230             fprintf(stderr, "Warning: Orphaned drive without
device: "
     231                     "id=%s,file=%s,if=%s,bus=%d,unit=%d\n",
     232                     blk_name(blk), blk_bs(blk)->filename,
if_name[dinfo->type],
     233                     dinfo->bus, dinfo->unit);
     234             rs = true;
     235         }
     236     }
Quoted 7 lines

For example, "run_qemu -drive if=scsi" will generate orphan warning message for s390x, but "run_qemu -drive if=virtio" will not generate orphan warning message, since virtio is a default drive.

so I removed _filter_orphan() in common.filter, and added orphan warning message(ie: for the output of "run_qemu -drive if=scsi") in
output file for s390x. thanks

OK, so it is expected for s390x; however, this is strictly speaking not the output file for s390x but for any platform but PC. That's why I'd rather not have it in this “generic” reference output.

Quoted 7 lines

This patch already assumes that the iotests only support s390 and PC (hunk @@ -251,28 +273,37 @@ in 051 adds a case statement which knows only these two cases). Therefore, I would be fine with renaming this reference output file to "051.s390.out" with a copy "051.s390-ccw-virtio.out" and just removing the generic "051.out". Then you can keep the warnings in.

It looks good to me. thanks

Hi Sascha:
This change is to rename 051.out to "051.s390.out" with a copy "051.s390-ccw-virtio.out" and just to remove the generic "051.out". Is this fine to you? thanks

Quoted 4 lines

(Or you filter the warnings out and keep it as "051.out".)

Max

#9 lore raw

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

In reply to Max Reitz

Dear Max,

Quoted 4 lines · Max Reitz

OK, so it is expected for s390x; however, this is strictly speaking not the output file for s390x but for any platform but PC. That's why I'd rather not have it in this “generic” reference output.

Quoted 8 lines

This patch already assumes that the iotests only support s390 and PC (hunk @@ -251,28 +273,37 @@ in 051 adds a case statement which knows only these two cases). Therefore, I would be fine with renaming this reference output file to "051.s390.out" with a copy "051.s390-ccw-virtio.out" and just removing the generic "051.out". Then you can keep the warnings in.

(Or you filter the warnings out and keep it as "051.out".)

This PC/s390x-only hunk looks like an oversight to me. We should make one of the options the default. I'd prefer defaulting to virtio (see below), but since the test previously hard-coded IDE that would be fine, too.

For the other cases, IIRC it's really PC that's the odd one out, that's why I suggested adding a PC-specific output file and patching the generic output file to look like the output on most other architectures.

But I'm fine with anything that gets the job done on both PC and s390x today. I'll have a closer look again once things settle down a bit. While the support for one output file per architecture is a very useful generic solution, we should make use of it only sparingly. The git log already shows that people forget to update test output files. This will get worse with multiple output files.

One of the things I'm considering is splitting off the IDE tests to a separate test case and skipping it entirely on machines that do not support IDE. Another is using virtio-blk on all architectures whenever the test case doesn't care about the device type. (I doubt the tests currently work on architectures that don't support virtio, but will of course check this).

Sascha

Signature · 3 lines
Softwareentwicklung Sascha Silbe, Niederhofenstraße 5/1, 71229 Leonberg
https://se-silbe.de/
USt-IdNr. DE281696641
#10 lore raw

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

Quoted 1 line · Sascha Silbe

Dear Max,

Hi! :-)

Quoted 13 lines
Quoted 11 lines · Max Reitz

OK, so it is expected for s390x; however, this is strictly speaking not the output file for s390x but for any platform but PC. That's why I'd rather not have it in this “generic” reference output.

This patch already assumes that the iotests only support s390 and PC (hunk @@ -251,28 +273,37 @@ in 051 adds a case statement which knows only these two cases). Therefore, I would be fine with renaming this reference output file to "051.s390.out" with a copy "051.s390-ccw-virtio.out" and just removing the generic "051.out". Then you can keep the warnings in.

Quoted 3 lines
Quoted 1 line

(Or you filter the warnings out and keep it as "051.out".)

This PC/s390x-only hunk looks like an oversight to me.

Not really, see
http://lists.nongnu.org/archive/html/qemu-devel/2015-02/msg01906.html
and
http://lists.nongnu.org/archive/html/qemu-devel/2015-04/msg02851.html

I noticed, but I am fine with it since the tests probably won't run on anything but x86/pc and s390 anyway (without modifications; most of the changes this series is making to make the iotests work on s390 are necessary for other non-pc platforms as well, and that shows to me that apparently nobody tried to run the iotests on non-pc platforms before s390, or didn't care enough about them to fix them).

Quoted 4 lines

We should make
one of the options the default. I'd prefer defaulting to virtio (see below), but since the test previously hard-coded IDE that would be fine, too.

In my first reply above, I noted that virtio0 may not be available on all platforms either. Therefore, I'd rather have an explicit list of platforms there than an asterisk where it does not belong.

However, my second reply above spawned a bit of a discussion, where Kevin simply proposed to change the ID of the drive to something known, i.e. just set the ID by adding an id=drive0 or something to the -drive parameter.

Thanks for reminding me of the above, I had already forgotten. Indeed, we should just add id=drive0 to the -drive parameter and use drive0. A similar solution may be possible in most other places as well where PC and s390 differ due to the names of the default devices available.

Quoted 3 lines

For the other cases, IIRC it's really PC that's the odd one out, that's why I suggested adding a PC-specific output file and patching the generic output file to look like the output on most other architectures.

Actually, I remember it was me:
http://lists.nongnu.org/archive/html/qemu-devel/2015-02/msg00862.html ;-)

(Not that it really matters, of course)

Quoted 2 lines

But I'm fine with anything that gets the job done on both PC and s390x today.

As am I.

Quoted 5 lines

I'll have a closer look again once things settle down a
bit. While the support for one output file per architecture is a very useful generic solution, we should make use of it only sparingly. The git log already shows that people forget to update test output files. This will get worse with multiple output files.

Well, maintaining the iotests for s390 may be a difficult task in itself. Most people (including myself) don't have an s390 machine, so we can't test whether modifications or additions we make to the iotests work there.

Quoted 6 lines

One of the things I'm considering is splitting off the IDE tests to a separate test case and skipping it entirely on machines that do not support IDE. Another is using virtio-blk on all architectures whenever the test case doesn't care about the device type. (I doubt the tests currently work on architectures that don't support virtio, but will of course check this).

The question is whether we really do have IDE test cases in the iotests. I don't think so, the actual IDE tests should be part of qtest. The iotests only test the block layer itself, so as I noted above we should most of the time get around the issues addressed in this series by simply manually setting the ID of the drive we are creating (instead of relying on a certain default name like ide0-hd0 or virtio0).

Max

author
#11 lore raw

Re: [Qemu-devel] [PATCH v2 2/4] qemu-iotests: s390x: fix test 051

Hi Max:

Quoted 29 lines · Max Reitz
Quoted 1 line · Sascha Silbe

This PC/s390x-only hunk looks like an oversight to me.

Not really, see
http://lists.nongnu.org/archive/html/qemu-devel/2015-02/msg01906.html
and
http://lists.nongnu.org/archive/html/qemu-devel/2015-04/msg02851.html

I noticed, but I am fine with it since the tests probably won't run on anything but x86/pc and s390 anyway (without modifications; most of the changes this series is making to make the iotests work on s390 are necessary for other non-pc platforms as well, and that shows to me that apparently nobody tried to run the iotests on non-pc platforms before s390, or didn't care enough about them to fix them).

Quoted 4 lines

We should make
one of the options the default. I'd prefer defaulting to virtio (see below), but since the test previously hard-coded IDE that would be fine, too.

In my first reply above, I noted that virtio0 may not be available on all platforms either. Therefore, I'd rather have an explicit list of platforms there than an asterisk where it does not belong.

However, my second reply above spawned a bit of a discussion, where Kevin simply proposed to change the ID of the drive to something known, i.e. just set the ID by adding an id=drive0 or something to the -drive parameter.

Quoted 4 lines

Thanks for reminding me of the above, I had already forgotten. Indeed, we should just add id=drive0 to the -drive parameter and use drive0. A similar solution may be possible in most other places as well where PC and s390 differ due to the names of the default devices available.

thanks for the reminder :-)

Yes, Kevin mentioned that we can use "id=testdisk" because it's the same on all platforms. Please refer this link:
http://lists.nongnu.org/archive/html/qemu-devel/2015-04/msg03715.html

For test 130, I used "qemu -drive id=testdisk" for both pc and s390x. For test 051, I didn't find a way to do the same thing for qemu-io.

author
#12 lore raw

PATCH v2 3/4 qemu-iotests: s390x: fix test 068

In reply to Bo Tu

Now, s390-virtio-ccw is default machine and s390-ccw.img is default boot loader. If the s390-virtio-ccw machine finds no device to load from and errors out, then emits a panic and exits the vm. This breaks test cases 068 for s390x.
Adding the parameter of "-no-shutdown" for s390-ccw-virtio will pause VM before shutdown.

---
 tests/qemu-iotests/068 | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
tests/qemu-iotests/068 +12 -2
index b72e555..58d1d80 100755
@@ -50,13 +50,23 @@ echo
 echo "=== Saving and reloading a VM state to/from a qcow2 image ==="
 echo
 _make_test_img $IMG_SIZE
+
+case "$QEMU_DEFAULT_MACHINE" in
+  s390-ccw-virtio)
+      platform_parm="-no-shutdown -machine accel=kvm"
+      ;;
+  *)
+      platform_parm=""
+      ;;
+esac
+
 # Give qemu some time to boot before saving the VM state
 bash -c 'sleep 1; echo -e "savevm 0\nquit"' |\
-    $QEMU -nographic -monitor stdio -serial none -hda "$TEST_IMG" |\
+    $QEMU $platform_parm -nographic -monitor stdio -serial none -hda "$TEST_IMG" |\
     _filter_qemu
 # Now try to continue from that VM state (this should just work)
 echo quit |\
-    $QEMU -nographic -monitor stdio -serial none -hda "$TEST_IMG" -loadvm 0 |\
+    $QEMU $platform_parm -nographic -monitor stdio -serial none -hda "$TEST_IMG" -loadvm 0 |\
     _filter_qemu
 
 # success, all done
Signature · 1 line
2.3.0
Acked-by on v2 3/4
#13 lore raw

Re: [Qemu-devel] [PATCH v2 3/4] qemu-iotests: s390x: fix test 068

Quoted 7 lines · Bo Tu

Now, s390-virtio-ccw is default machine and s390-ccw.img is default boot loader. If the s390-virtio-ccw machine finds no device to load from and errors out, then emits a panic and exits the vm. This breaks test cases 068 for s390x.
Adding the parameter of "-no-shutdown" for s390-ccw-virtio will pause VM before shutdown.

Quoted 5 lines
---
 tests/qemu-iotests/068 | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

(I have no way of verifying that this patch fixes this test for said machine type, so I cannot give an R-b.)

author
#14 lore raw

PATCH v2 4/4 qemu-iotests: disable VNC server for test 120

In reply to Bo Tu

Ever since qemu-iotest 120 was introduced, its expected output didn't include the output from the built-in VNC server:

QA output created by 120
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 QMP_VERSION
+VNC server running on `::1:5900'
{"return": {}}
wrote 65536/65536 bytes at offset 0
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)

Since some architectures do not even have a graphical console, we just pass -nographic to avoid the output.

Fixes a68197ff5b11 ("iotests: Add tests for overriding

BDRV_O_PROTOCOL")

---
 tests/qemu-iotests/120 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/120 +1 -1
index 9f13078..fb69efd 100755
@@ -49,7 +49,7 @@ echo "{'execute': 'qmp_capabilities'}
       {'execute': 'human-monitor-command',
        'arguments': {'command-line': 'qemu-io drv \"write -P 42 0 64k\"'}}
       {'execute': 'quit'}" \
-    | $QEMU -qmp stdio -nodefaults \
+    | $QEMU -qmp stdio -nodefaults -nographic \
             -drive id=drv,if=none,file="$TEST_IMG",driver=raw,file.driver=$IMGFMT \
     | _filter_qmp | _filter_qemu_io
 $QEMU_IO -c 'read -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io
Signature · 1 line
2.3.0
#15 lore raw

Re: [Qemu-devel] [PATCH v2 4/4] qemu-iotests: disable VNC server for test 120

Quoted 28 lines · Bo Tu

Ever since qemu-iotest 120 was introduced, its expected output didn't include the output from the built-in VNC server:

QA output created by 120
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 QMP_VERSION
+VNC server running on `::1:5900'
{"return": {}}
wrote 65536/65536 bytes at offset 0
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)

Since some architectures do not even have a graphical console, we just pass -nographic to avoid the output.

Fixes a68197ff5b11 ("iotests: Add tests for overriding

BDRV_O_PROTOCOL")

---
 tests/qemu-iotests/120 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/120 +0 -0
index 9f13078..fb69efd 100755

tests/qemu-iotests/120 echo "{'execute': 'qmp_capabilities'} · line 55

Quoted 8 lines
tests/qemu-iotests/120 +1 -1
@@ -49,7 +49,7 @@ echo "{'execute': 'qmp_capabilities'}
       {'execute': 'human-monitor-command',
        'arguments': {'command-line': 'qemu-io drv \"write -P 42 0 64k\"'}}
       {'execute': 'quit'}" \
-    | $QEMU -qmp stdio -nodefaults \
+    | $QEMU -qmp stdio -nodefaults -nographic \
             -drive id=drv,if=none,file="$TEST_IMG",driver=raw,file.driver=$IMGFMT \
     | _filter_qmp | _filter_qemu_io
 $QEMU_IO -c 'read -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io

Looks good, but I think we need the same for 119.

Max

author
#16 lore raw

Re: [Qemu-devel] [PATCH v2 4/4] qemu-iotests: disable VNC server for test 120

Hi Max:

Quoted 24 lines · Max Reitz
Quoted 23 lines · Bo Tu

Ever since qemu-iotest 120 was introduced, its expected output didn't include the output from the built-in VNC server:

QA output created by 120
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 QMP_VERSION
+VNC server running on `::1:5900'
{"return": {}}
wrote 65536/65536 bytes at offset 0
64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)

Since some architectures do not even have a graphical console, we just pass -nographic to avoid the output.

Fixes a68197ff5b11 ("iotests: Add tests for overriding

BDRV_O_PROTOCOL")

---
  tests/qemu-iotests/120 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

tests/qemu-iotests/120 echo "{'execute': 'qmp_capabilities'} · line 55

Quoted 13 lines
tests/qemu-iotests/120 +1 -1
index 9f13078..fb69efd 100755
@@ -49,7 +49,7 @@ echo "{'execute': 'qmp_capabilities'}
        {'execute': 'human-monitor-command',
         'arguments': {'command-line': 'qemu-io drv \"write -P 42 0 64k\"'}}
        {'execute': 'quit'}" \
-    | $QEMU -qmp stdio -nodefaults \
+    | $QEMU -qmp stdio -nodefaults -nographic \
              -drive id=drv,if=none,file="$TEST_IMG",driver=raw,file.driver=$IMGFMT \
      | _filter_qmp | _filter_qemu_io
  $QEMU_IO -c 'read -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io

Looks good, but I think we need the same for 119.

I agree with you that 119 need to add the parameter of "-nographic" at line 53.

52 | $QEMU -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
53 -qmp stdio -nodefaults \

Quoted 3 lines

Max