Signed-off-by: Marc-André Lureau <[email protected]>
---
tests/qemu-iotests/tests/reopen-file | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/tests/qemu-iotests/tests/reopen-file
b/tests/qemu-iotests/tests/reopen-file
index f8812320ea8f..98b0f9e98e73 100755
--- a/tests/qemu-iotests/tests/reopen-file
+++ b/tests/qemu-iotests/tests/reopen-file
@@ -72,18 +72,12 @@ class TestReopenFile(QMPTestCase):
# Do some I/O to the image to see whether it still works
# (Pattern verification will be checked by tearDown())
- result = self.vm.qmp('human-monitor-command',
- command_line='qemu-io format "write -P 42 0 64k"')
- self.assert_qmp(result, 'return', '')
-
- result = self.vm.qmp('human-monitor-command',
- command_line='qemu-io format "read -P 42 0 64k"')
- self.assert_qmp(result, 'return', '')
+ self.vm.qmp_qemu_io('format', 'write -P 42 0 64k')
+ self.vm.qmp_qemu_io('format', 'read -P 42 0 64k')
if __name__ == '__main__':
# Must support creating images and reopen
iotests.main(supported_fmts=['qcow', 'qcow2', 'qed', 'raw', 'vdi', 'vhdx',
'vmdk', 'vpc'],
- supported_protocols=['file'],
- require_hmp=True)
+ supported_protocols=['file'])
--
2.56.0.rc0.29.g47ce80527c56