Skip to contentSkip to conversation

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

PATCH In review Fam Zheng 3 participants 6 messages Nov 20, 2015 – Nov 23, 2015

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

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

Otherwise, a window flashes on my desktop (built with SDL). Other iotest cases have that.

---
 tests/qemu-iotests/120 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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 14 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Other iotest cases have that.

---
 tests/qemu-iotests/120 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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

This is the same patch as
http://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg00623.html,
but while both are correct, both need to fix 119, too, I think.

(And while I would be fine with merging this and then taking a follow-up patch, I don't think we need to hurry for 2.5. Releases and iotests don't really care about each other, other than that we should pass all the iotests before a release unless we know what's wrong and don't care.)

Max

#2 lore raw

Hi Max:

Quoted 28 lines · Max Reitz
Quoted 14 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Other iotest cases have that.

---
  tests/qemu-iotests/120 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
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

This is the same patch as
http://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg00623.html,
but while both are correct, both need to fix 119, too, I think.

Quoted 5 lines

(And while I would be fine with merging this and then taking a follow-up patch, I don't think we need to hurry for 2.5. Releases and iotests don't really care about each other, other than that we should pass all the iotests before a release unless we know what's wrong and don't care.)

thanks for your advice. I plan to fix 119 in a follow-up patch. currently, 119 is notrun for s390x, and I hope to spend some time to investigate it later.

Quoted 2 lines

Max

author
#3 lore raw
Quoted 37 lines · tu bo

Hi Max:

Quoted 28 lines · Max Reitz
Quoted 14 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Other iotest cases have that.

---
 tests/qemu-iotests/120 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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

This is the same patch as
http://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg00623.html,
but while both are correct, both need to fix 119, too, I think.

Quoted 5 lines

(And while I would be fine with merging this and then taking a follow-up patch, I don't think we need to hurry for 2.5. Releases and iotests don't really care about each other, other than that we should pass all the iotests before a release unless we know what's wrong and don't care.)

Quoted 4 lines

thanks for your advice. I plan to fix 119 in a follow-up patch. currently, 119 is notrun for s390x, and I hope to spend some time to investigate it later.

I'm sending a new version fixing both scripts.

Fam

#4 lore raw

Hi Fam, Max:

Quoted 38 lines · Fam Zheng
Quoted 37 lines · tu bo

Hi Max:

Quoted 33 lines · Max Reitz
Quoted 14 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Other iotest cases have that.

---
  tests/qemu-iotests/120 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
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

This is the same patch as
http://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg00623.html,
but while both are correct, both need to fix 119, too, I think.

(And while I would be fine with merging this and then taking a follow-up patch, I don't think we need to hurry for 2.5. Releases and iotests don't really care about each other, other than that we should pass all the iotests before a release unless we know what's wrong and don't care.)

Quoted 6 lines
Quoted 4 lines

thanks for your advice. I plan to fix 119 in a follow-up patch. currently, 119 is notrun for s390x, and I hope to spend some time to investigate it later.

I'm sending a new version fixing both scripts.

Good news.

Hi Max:

If it's fine to you, I'll remove patch for 120 from my patch set. thanks

Quoted 3 lines

Fam

#5 lore raw
Quoted 50 lines · tu bo

Hi Fam, Max:

Quoted 47 lines · Fam Zheng
Quoted 45 lines · tu bo

Hi Max:

Quoted 30 lines · Max Reitz
Quoted 21 lines · Fam Zheng

Otherwise, a window flashes on my desktop (built with SDL). Other iotest cases have that.

---
  tests/qemu-iotests/120 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
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 \
Quoted 3 lines
      | _filter_qmp | _filter_qemu_io
  $QEMU_IO -c 'read -P 42 0 64k' "$TEST_IMG" | _filter_qemu_io

This is the same patch as
http://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg00623.html,
but while both are correct, both need to fix 119, too, I think.

Quoted 7 lines

(And while I would be fine with merging this and then taking a follow-up
patch, I don't think we need to hurry for 2.5. Releases and iotests don't really care about each other, other than that we should pass all the iotests before a release unless we know what's wrong and don't care.)

thanks for your advice. I plan to fix 119 in a follow-up patch. currently, 119 is notrun for s390x, and I hope to spend some time to investigate it later.

Quoted 7 lines
Quoted 1 line

I'm sending a new version fixing both scripts.

Good news.

Hi Max:

If it's fine to you, I'll remove patch for 120 from my patch set. thanks

Yep, that's completely fine, of course.

Max