Signed-off-by: Marc-André Lureau <[email protected]>
---
tests/qemu-iotests/117 | 5 ++---
tests/qemu-iotests/117.out | 8 +++-----
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/tests/qemu-iotests/117 b/tests/qemu-iotests/117
index 5cc9433f4a67..69d3a862d5e5 100755
--- a/tests/qemu-iotests/117
+++ b/tests/qemu-iotests/117
@@ -41,7 +41,6 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
_supported_fmt qcow2
_supported_proto file fuse
-_require_hmp
_make_test_img 64k
@@ -66,8 +65,8 @@ _send_qemu_cmd $QEMU_HANDLE \
'return'
_send_qemu_cmd $QEMU_HANDLE \
- "{ 'execute': 'human-monitor-command',
- 'arguments': { 'command-line': 'qemu-io format \"write -P 42 0 64k\"' }
}" \
+ "{ 'execute': 'x-qemu-io',
+ 'arguments': { 'device': 'format', 'command': 'write -P 42 0 64k' } }" \
'return'
_send_qemu_cmd $QEMU_HANDLE \
diff --git a/tests/qemu-iotests/117.out b/tests/qemu-iotests/117.out
index 1cea9e021730..af2a30be9e84 100644
--- a/tests/qemu-iotests/117.out
+++ b/tests/qemu-iotests/117.out
@@ -12,11 +12,9 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=65536
'driver': 'IMGFMT',
'file': 'protocol' } }
{"return": {}}
-{ 'execute': 'human-monitor-command',
- 'arguments': { 'command-line': 'qemu-io format "write -P 42 0 64k"' } }
-wrote 65536/65536 bytes at offset 0
-64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-{"return": ""}
+{ 'execute': 'x-qemu-io',
+ 'arguments': { 'device': 'format', 'command': 'write -P 42 0 64k' } }
+{"return": {"human-readable-text": "wrote 65536/65536 bytes at offset 0\n64
KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n"}}
{ 'execute': 'quit' }
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event":
"SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
{"return": {}}
--
2.56.0.rc0.29.g47ce80527c56