]> Git Repo - qemu.git/commitdiff
qemu-iotests: Add missing -machine accel=qtest
authorKevin Wolf <[email protected]>
Thu, 7 Sep 2017 08:50:00 +0000 (10:50 +0200)
committerKevin Wolf <[email protected]>
Tue, 26 Sep 2017 12:46:23 +0000 (14:46 +0200)
A basic set of qemu options is initialised in ./common:

    export QEMU_OPTIONS="-nodefaults -machine accel=qtest"

However, two test cases (172 and 186) overwrite QEMU_OPTIONS and neglect
to manually set '-machine accel=qtest'. Add the missing option for 172.
186 probably only copied the code from 172, it doesn't actually need to
overwrite QEMU_OPTIONS, so remove that in 186.

Signed-off-by: Kevin Wolf <[email protected]>
Tested-by: Cornelia Huck <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
tests/qemu-iotests/172
tests/qemu-iotests/186

index 826d6fecd3cdb81863fbfd5b55fa66a0caee664b..02c5f79bab8582fcf5212148f32314012b922463 100755 (executable)
@@ -56,7 +56,7 @@ function do_run_qemu()
             done
         fi
         echo quit
-    ) | $QEMU -nographic -monitor stdio -serial none "$@"
+    ) | $QEMU -machine accel=qtest -nographic -monitor stdio -serial none "$@"
     echo
 }
 
index 2b9f618f9007116aa3d92f2825ea02585321f05b..44cc01ed8770544e9009099cc1f52502db194885 100755 (executable)
@@ -56,15 +56,15 @@ function do_run_qemu()
             done
         fi
         echo quit
-    ) | $QEMU -S -nodefaults -display none -device virtio-scsi-pci -monitor stdio "$@" 2>&1
+    ) | $QEMU -S -display none -device virtio-scsi-pci -monitor stdio "$@" 2>&1
     echo
 }
 
 function check_info_block()
 {
     echo "info block" |
-    QEMU_OPTIONS="" do_run_qemu "$@" | _filter_win32 | _filter_hmp |
-        _filter_qemu | _filter_generated_node_ids
+    do_run_qemu "$@" | _filter_win32 | _filter_hmp | _filter_qemu |
+        _filter_generated_node_ids
 }
 
 
This page took 0.027941 seconds and 4 git commands to generate.