Log command, although this is not strictly needed.
Signed-off-by: Marc-André Lureau <[email protected]>
---
tests/qemu-iotests/216 | 6 ++----
tests/qemu-iotests/216.out | 3 ++-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/tests/qemu-iotests/216 b/tests/qemu-iotests/216
index 4eabada9b35d..2d32b0f126ce 100755
--- a/tests/qemu-iotests/216
+++ b/tests/qemu-iotests/216
@@ -25,8 +25,7 @@ from iotests import log, qemu_img, qemu_io
# Need backing file support
iotests.script_initialize(supported_fmts=['qcow2', 'qcow', 'qed', 'vmdk'],
- supported_platforms=['linux'],
- require_hmp=True)
+ supported_platforms=['linux'])
log('')
log('=== Copy-on-read across nodes ===')
@@ -102,8 +101,7 @@ with iotests.FilePath('base.img') as base_img_path, \
}))
# Trigger COR
- log(vm.qmp('human-monitor-command',
- command_line='qemu-io node0 "read 0 64M"'))
+ vm.qmp_qemu_io('node0', 'read 0 64M', use_log=True)
vm.shutdown()
diff --git a/tests/qemu-iotests/216.out b/tests/qemu-iotests/216.out
index a70aa5cdaeb9..c2d8101e8858 100644
--- a/tests/qemu-iotests/216.out
+++ b/tests/qemu-iotests/216.out
@@ -8,7 +8,8 @@ Done
--- Doing COR ---
{"return": {}}
-{"return": ""}
+{"execute": "x-qemu-io", "arguments": {"command": "read 0 64M", "device":
"node0"}}
+{"return": {"human-readable-text": "read 67108864/67108864 bytes at offset
0\n64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n"}}
--- Checking COR result ---
--
2.56.0.rc0.29.g47ce80527c56