Skip to contentSkip to conversation

qemu-iotests: use -nographic in test case 007

PATCH Applied Stefan Hajnoczi 3 participants 3 messages Mar 14, 2013 – Mar 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-iotests: use -nographic in test case 007

A comment explains that -nographic hangs test case 007. This is no longer the case so add -nographic. This makes the test suite faster and more pleasant to run since no windows pop up.

I am not sure exactly when -nographic starting working for this case but there is no fundamental reason why graphics are needed here. Make sure the serial port is not on stdio, it would conflict with the monitor.

Also remove unnecessary trailing whitespace on these lines.

---
 tests/qemu-iotests/007 | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
tests/qemu-iotests/007 +3 -4
index 0139264..c454f2c 100755
@@ -50,10 +50,9 @@ _make_test_img 1M
 
 for i in `seq 1 10`; do
     echo "savevm $i"
-    # XXX(hch): adding -nographic would be good, but hangs the test
-    $QEMU -hda $TEST_IMG -monitor stdio >/dev/null 2>&1 <<EOF     
-savevm test-$i                                                              
-quit                                                                        
+    $QEMU -nographic -hda $TEST_IMG -serial none -monitor stdio >/dev/null 2>&1 <<EOF
+savevm test-$i
+quit
 EOF
 done
 
Signature · 1 line
1.8.1.4
Tested-by on v1 1/1
#1 lore raw

Am 14.03.2013 um 17:06 hat Stefan Hajnoczi geschrieben:

Quoted 11 lines

A comment explains that -nographic hangs test case 007. This is no longer the case so add -nographic. This makes the test suite faster and more pleasant to run since no windows pop up.

I am not sure exactly when -nographic starting working for this case but there is no fundamental reason why graphics are needed here. Make sure the serial port is not on stdio, it would conflict with the monitor.

Also remove unnecessary trailing whitespace on these lines.

This doesn't really make a difference for the speed on my laptop, but it works and is definitely nicer. On my virtlab test box I noticed that only this really enables the test. Before, it was complaining to /dev/null that it couldn't open the display...

#2 lore raw
In reply to Stefan Hajnoczi
Quoted 8 lines · Stefan Hajnoczi

A comment explains that -nographic hangs test case 007. This is no longer the case so add -nographic. This makes the test suite faster and more pleasant to run since no windows pop up.

I am not sure exactly when -nographic starting working for this case but there is no fundamental reason why graphics are needed here. Make sure the serial port is not on stdio, it would conflict with the monitor.

Quoted 6 lines

Also remove unnecessary trailing whitespace on these lines.

---
 tests/qemu-iotests/007 | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan