Skip to contentSkip to conversation

qemu-iotests: Add -nographic when starting QEMU in 119 and 120

PATCH Applied Fam Zheng 4 participants 5 messages Nov 23, 2015 – Nov 24, 2015

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 qemu-iotests: Add -nographic when starting QEMU in 119 and 120

Otherwise, a window flashes on my desktop (built with SDL). Add this as other cases have it.

---
v2: Fix 119 too. [Max]

---
 tests/qemu-iotests/119 | 2 +-
 tests/qemu-iotests/120 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/qemu-iotests/119 +1 -1
index 9a11f1b..cc6ec07 100755
@@ -49,7 +49,7 @@ echo "{'execute': 'qmp_capabilities'}
       {'execute': 'human-monitor-command',
        'arguments': {'command-line': 'qemu-io drv \"read -P 0 0 64k\"'}}
       {'execute': 'quit'}" \
-    | $QEMU -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
+    | $QEMU -nographic -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
             -qmp stdio -nodefaults \
     | _filter_qmp | _filter_qemu_io
 
tests/qemu-iotests/120 +1 -1
index 9f13078..d899a3f 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 -nographic -nodefaults \
             -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.4.3
#1 lore raw
Quoted 30 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Add this as other cases have it.

---
v2: Fix 119 too. [Max]

---
 tests/qemu-iotests/119 | 2 +-
 tests/qemu-iotests/120 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/qemu-iotests/119 +1 -1
index 9a11f1b..cc6ec07 100755
@@ -49,7 +49,7 @@ echo "{'execute': 'qmp_capabilities'}
       {'execute': 'human-monitor-command',
        'arguments': {'command-line': 'qemu-io drv \"read -P 0 0 64k\"'}}
       {'execute': 'quit'}" \
-    | $QEMU -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
+    | $QEMU -nographic -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
             -qmp stdio -nodefaults \
     | _filter_qmp | _filter_qemu_io
 
tests/qemu-iotests/120 +0 -0
index 9f13078..d899a3f 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 -nographic -nodefaults \
             -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

-nographic is legacy. Using legacy options is fine, but I wonder whether you want -display none here. Unless you really want to redirect serial and parallel port, I suspect you do.

author
#2 lore raw
Quoted 36 lines · Markus Armbruster
Quoted 34 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Add this as other cases have it.

---
v2: Fix 119 too. [Max]

---
 tests/qemu-iotests/119 | 2 +-
 tests/qemu-iotests/120 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tests/qemu-iotests/119 +1 -1
index 9a11f1b..cc6ec07 100755
@@ -49,7 +49,7 @@ echo "{'execute': 'qmp_capabilities'}
       {'execute': 'human-monitor-command',
        'arguments': {'command-line': 'qemu-io drv \"read -P 0 0 64k\"'}}
       {'execute': 'quit'}" \
-    | $QEMU -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
+    | $QEMU -nographic -drive id=drv,if=none,file="$TEST_IMG",driver=nbd \
             -qmp stdio -nodefaults \
     | _filter_qmp | _filter_qemu_io
 
tests/qemu-iotests/120 +0 -1
index 9f13078..d899a3f 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 \
Quoted 8 lines

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

Quoted 4 lines
tests/qemu-iotests/120 +1 -0
+    | $QEMU -qmp stdio -nographic -nodefaults \
             -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

-nographic is legacy. Using legacy options is fine, but I wonder whether you want -display none here. Unless you really want to redirect serial and parallel port, I suspect you do.

I was just following other cases, I'm fine with either way but I suspect it's worth to convert them. So if there is no other problem let's be consistent and stick to -nographic for now. Thanks for pointing out, though.

Fam

Applied
#3 lore raw
In reply to Fam Zheng
Quoted 11 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Add this as other cases have it.

---
v2: Fix 119 too. [Max]

---
 tests/qemu-iotests/119 | 2 +-
 tests/qemu-iotests/120 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to my block-next tree:

https://github.com/XanClic/qemu/commits/block-next

(There are basically no reasons in favor of or against taking this in for 2.5, so I decided in favor of “as few patches during freeze as possible”. If someone tries to convince me to take it in for 2.5, I won't have any objections.)

Max

#4 lore raw

Am 23.11.2015 um 22:15 hat Max Reitz geschrieben:

Quoted 15 lines · Fam Zheng
Quoted 11 lines

Otherwise, a window flashes on my desktop (built with SDL). Add this as other cases have it.

---
v2: Fix 119 too. [Max]

---
 tests/qemu-iotests/119 | 2 +-
 tests/qemu-iotests/120 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to my block-next tree:

Quoted 7 lines

https://github.com/XanClic/qemu/commits/block-next

(There are basically no reasons in favor of or against taking this in for 2.5, so I decided in favor of “as few patches during freeze as possible”. If someone tries to convince me to take it in for 2.5, I won't have any objections.)

It's clearly a bug fix, minimal diffstat, and as it's in the test suite not risky at all. Sounds like 2.5 to me.

Kevin