Signed-off-by: Marc-André Lureau <[email protected]>
---
 tests/qemu-iotests/310     | 6 ++----
 tests/qemu-iotests/310.out | 3 ++-
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/tests/qemu-iotests/310 b/tests/qemu-iotests/310
index 7f290898fea0..5ca59fda8706 100755
--- a/tests/qemu-iotests/310
+++ b/tests/qemu-iotests/310
@@ -25,8 +25,7 @@ from iotests import log, qemu_img, qemu_io
 
 # Need backing file support
 iotests.script_initialize(supported_fmts=['qcow2'],
-                          supported_platforms=['linux'],
-                          require_hmp=True)
+                          supported_platforms=['linux'])
 
 log('')
 log('=== Copy-on-read across nodes ===')
@@ -96,8 +95,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 5M"'))
+    vm.qmp_qemu_io('node0', 'read 0 5M', use_log=True)
 
     vm.shutdown()
 
diff --git a/tests/qemu-iotests/310.out b/tests/qemu-iotests/310.out
index a70aa5cdaeb9..b15bb93281eb 100644
--- a/tests/qemu-iotests/310.out
+++ b/tests/qemu-iotests/310.out
@@ -8,7 +8,8 @@ Done
 --- Doing COR ---
 
 {"return": {}}
-{"return": ""}
+{"execute": "x-qemu-io", "arguments": {"command": "read 0 5M", "device": 
"node0"}}
+{"return": {"human-readable-text": "read 5242880/5242880 bytes at offset 0\n5 
MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n"}}
 
 --- Checking COR result ---
 

-- 
2.56.0.rc0.29.g47ce80527c56


Reply via email to