For consistency with the rest of the test, we use use_log=True, although
it is not stricly necessary.

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

diff --git a/tests/qemu-iotests/280 b/tests/qemu-iotests/280
index 8f4750de074b..ccd94905e045 100755
--- a/tests/qemu-iotests/280
+++ b/tests/qemu-iotests/280
@@ -27,7 +27,6 @@ iotests.script_initialize(
     supported_fmts=['qcow2'],
     supported_protocols=['file'],
     supported_platforms=['linux'],
-    require_hmp=True,
 )
 
 with iotests.FilePath('base') as base_path , \
@@ -77,7 +76,7 @@ with iotests.FilePath('base') as base_path , \
 
     iotests.log('\n=== Resume the VM and simulate a write request ===')
     vm.qmp_log('cont')
-    iotests.log(vm.hmp_qemu_io('-d vda/virtio-backend', 'write 4k 4k'))
+    vm.qmp_qemu_io('vda/virtio-backend', 'write 4k 4k', use_log=True, 
qdev=True)
 
     iotests.log('\n=== Commit it to the backing file ===')
     result = vm.qmp_log('block-commit', job_id='job0', auto_dismiss=False,
diff --git a/tests/qemu-iotests/280.out b/tests/qemu-iotests/280.out
index 37411144cafe..21eff12585c1 100644
--- a/tests/qemu-iotests/280.out
+++ b/tests/qemu-iotests/280.out
@@ -36,7 +36,8 @@ completed
 === Resume the VM and simulate a write request ===
 {"execute": "cont", "arguments": {}}
 {"return": {}}
-{"return": ""}
+{"execute": "x-qemu-io", "arguments": {"command": "write 4k 4k", "qdev": 
"vda/virtio-backend"}}
+{"return": {"human-readable-text": "wrote 4096/4096 bytes at offset 4096\n4 
KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)\n"}}
 
 === Commit it to the backing file ===
 {"execute": "block-commit", "arguments": {"auto-dismiss": false, "device": 
"top-fmt", "job-id": "job0", "top-node": "top-fmt"}}

-- 
2.56.0.rc0.29.g47ce80527c56


Reply via email to