mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests/disks/debug-qemu.sh: Fix test for update QMP test
Commitf7a24b2ea8("lib/qemu.c: Use machine type none when inspecting QMP properties") changed the number of command line parameters used before the '-qmp stdio' option when libguestfs queries qemu features. This broke some tests which rely on the exact order of parameters. Fixes: commitf7a24b2ea8Updates: commit5da8102f5f
This commit is contained in:
@@ -25,7 +25,7 @@ fi
|
||||
|
||||
# The direct backend runs qemu ... -qmp stdio to query for KVM. For
|
||||
# the test to pass we have to provide an answer here.
|
||||
if [ "x$7" = "x-qmp" ]; then
|
||||
if [ "x$5" = "x-qmp" ]; then
|
||||
# Consume stdin first.
|
||||
cat >/dev/null
|
||||
# Write some fake output.
|
||||
|
||||
Reference in New Issue
Block a user