Replace -monitor stdio with -qmp stdio for the second QEMU instance that tests file locking.
Signed-off-by: Marc-André Lureau <[email protected]> --- tests/qemu-iotests/182 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182 index af5eeb599c18..f0b8bd1ad2b2 100755 --- a/tests/qemu-iotests/182 +++ b/tests/qemu-iotests/182 @@ -55,10 +55,11 @@ _launch_qemu -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \ echo echo "Starting a second QEMU using the same image should fail" -echo 'quit' | $QEMU -nographic -monitor stdio \ +echo '{"execute":"qmp_capabilities"} +{"execute":"quit"}' | $QEMU -nographic -qmp stdio \ -drive file=$TEST_IMG,if=none,id=drive0,file.locking=on \ -device virtio-blk,drive=drive0 2>&1 | _filter_testdir 2>&1 | - _filter_qemu | + _filter_qemu | grep -v '^{' | sed -e '/falling back to POSIX file/d' \ -e '/locks can be lost unexpectedly/d' -- 2.56.0.rc0.29.g47ce80527c56
