Signed-off-by: Marc-André Lureau <[email protected]>
---
tests/qemu-iotests/304 | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/tests/qemu-iotests/304 b/tests/qemu-iotests/304
index 03c7c1cbe3c8..2447fca99dbf 100755
--- a/tests/qemu-iotests/304
+++ b/tests/qemu-iotests/304
@@ -24,8 +24,7 @@ import iotests
from iotests import qemu_img_create, qemu_img_log, file_path
iotests.script_initialize(supported_fmts=['qcow2', 'parallels'],
- supported_protocols=['file'],
- require_hmp=True)
+ supported_protocols=['file'])
test_img = file_path('test.qcow2')
target_img = file_path('target.qcow2')
@@ -41,8 +40,8 @@ vm = iotests.VM().add_drive(test_img)
vm.launch()
# write to the entire image
-vm.hmp_qemu_io('drive0', 'write -P0x16 0 4096');
-vm.hmp_qemu_io('drive0', 'write -P0x17 4096 1');
+vm.qmp_qemu_io('drive0', 'write -P0x16 0 4096');
+vm.qmp_qemu_io('drive0', 'write -P0x17 4096 1');
# do backup and wait for completion
vm.qmp('drive-backup', **{
--
2.56.0.rc0.29.g47ce80527c56