Signed-off-by: Marc-André Lureau <[email protected]>
---
tests/qemu-iotests/tests/mirror-change-copy-mode | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/tests/qemu-iotests/tests/mirror-change-copy-mode
b/tests/qemu-iotests/tests/mirror-change-copy-mode
index c9c345f1397c..79a6a7396450 100755
--- a/tests/qemu-iotests/tests/mirror-change-copy-mode
+++ b/tests/qemu-iotests/tests/mirror-change-copy-mode
@@ -119,8 +119,8 @@ class TestMirrorChangeCopyMode(iotests.QMPTestCase):
copy_mode='background')
def test_background_to_active(self):
- self.vm.hmp_qemu_io('source', f'write 0 {image_size}')
- self.vm.hmp_qemu_io('target', f'write 0 {image_size}')
+ self.vm.qmp_qemu_io('source', f'write 0 {image_size}')
+ self.vm.qmp_qemu_io('target', f'write 0 {image_size}')
self.start_mirror()
@@ -137,7 +137,7 @@ class TestMirrorChangeCopyMode(iotests.QMPTestCase):
req_size = image_size // reqs
for i in range(0, reqs):
req = f'aio_write -P 7 {req_size * i} {req_size}'
- self.vm.hmp_qemu_io('source', req)
+ self.vm.qmp_qemu_io('source', req)
# Wait for the first few requests.
time.sleep(1)
@@ -174,15 +174,15 @@ class TestMirrorChangeCopyMode(iotests.QMPTestCase):
req_size = image_size // 2 // reqs
for i in range(0, reqs):
req = f'aio_write -P 19 {req_size * i} {req_size}'
- self.vm.hmp_qemu_io('source', req)
+ self.vm.qmp_qemu_io('source', req)
# Now issue a synchronous write in the second half of the image and
# immediately verify that it was written to the target too. This would
# fail without switching the copy mode. Note that this only produces a
# log line and the actual checking happens during tearDown().
req_args = f'-P 37 {3 * (image_size // 4)} {req_size}'
- self.vm.hmp_qemu_io('source', f'write {req_args}')
- self.vm.hmp_qemu_io('target', f'read {req_args}')
+ self.vm.qmp_qemu_io('source', f'write {req_args}')
+ self.vm.qmp_qemu_io('target', f'read {req_args}')
self.vm.cmd('block-job-cancel', device='mirror')
while len(self.vm.cmd('query-block-jobs')) > 0:
@@ -190,5 +190,4 @@ class TestMirrorChangeCopyMode(iotests.QMPTestCase):
if __name__ == '__main__':
iotests.main(supported_fmts=['qcow2', 'raw'],
- supported_protocols=['file'],
- require_hmp=True)
+ supported_protocols=['file'])
--
2.56.0.rc0.29.g47ce80527c56