Signed-off-by: Marc-André Lureau <[email protected]>
---
 tests/qemu-iotests/tests/mirror-ready-cancel-error | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/tests/qemu-iotests/tests/mirror-ready-cancel-error 
b/tests/qemu-iotests/tests/mirror-ready-cancel-error
index ffa045af2191..06ca8871327b 100755
--- a/tests/qemu-iotests/tests/mirror-ready-cancel-error
+++ b/tests/qemu-iotests/tests/mirror-ready-cancel-error
@@ -96,9 +96,7 @@ class TestMirrorReadyCancelError(iotests.QMPTestCase):
 
         # Write something so will not leave the job immediately, but
         # flush first (which will fail, thanks to blkdebug)
-        res = self.vm.qmp('human-monitor-command',
-                          command_line='qemu-io mirror-top "write -P 2 0 64k"')
-        self.assert_qmp(res, 'return', '')
+        self.vm.qmp_qemu_io('mirror-top', 'write -P 2 0 64k')
 
         # Drain status change events
         while self.vm.event_wait('JOB_STATUS_CHANGE', timeout=0.0) is not None:
@@ -139,5 +137,4 @@ if __name__ == '__main__':
     # LUKS would require special key-secret handling in add_blockdevs()
     iotests.main(supported_fmts=['generic'],
                  unsupported_fmts=['luks'],
-                 supported_protocols=['file'],
-                 require_hmp=True)
+                 supported_protocols=['file'])

-- 
2.56.0.rc0.29.g47ce80527c56


Reply via email to