Drop the quite redundant HMP code path.

Signed-off-by: Marc-André Lureau <[email protected]>
---
 tests/qemu-iotests/274     | 14 +-------------
 tests/qemu-iotests/274.out | 26 --------------------------
 2 files changed, 1 insertion(+), 39 deletions(-)

diff --git a/tests/qemu-iotests/274 b/tests/qemu-iotests/274
index d91c11c70d2e..917982ec63bf 100755
--- a/tests/qemu-iotests/274
+++ b/tests/qemu-iotests/274
@@ -24,8 +24,7 @@ import iotests
 
 iotests.script_initialize(supported_fmts=['qcow2'],
                           supported_platforms=['linux'],
-                          unsupported_imgopts=['refcount_bits', 'compat'],
-                          require_hmp=True)
+                          unsupported_imgopts=['refcount_bits', 'compat'])
 
 size_short = 1 * 1024 * 1024
 size_long = 2 * 1024 * 1024
@@ -93,17 +92,6 @@ with iotests.FilePath('base') as base, \
     iotests.qemu_io_log('-c', 'read -P 1 0 %d' % size_short, mid)
     iotests.qemu_io_log('-c', 'read -P 0 %d %d' % (size_short, size_diff), mid)
 
-    iotests.log('=== Testing HMP commit (top -> mid) ===')
-
-    create_chain()
-    with create_vm() as vm:
-        vm.launch()
-        vm.qmp_log('human-monitor-command', command_line='commit drive0')
-
-    iotests.img_info_log(mid)
-    iotests.qemu_io_log('-c', 'read -P 1 0 %d' % size_short, mid)
-    iotests.qemu_io_log('-c', 'read -P 0 %d %d' % (size_short, size_diff), mid)
-
     iotests.log('=== Testing QMP active commit (top -> mid) ===')
 
     create_chain()
diff --git a/tests/qemu-iotests/274.out b/tests/qemu-iotests/274.out
index c2967335ca09..ef1d2d993c9f 100644
--- a/tests/qemu-iotests/274.out
+++ b/tests/qemu-iotests/274.out
@@ -59,32 +59,6 @@ read 1048576/1048576 bytes at offset 0
 read 1048576/1048576 bytes at offset 1048576
 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 
-=== Testing HMP commit (top -> mid) ===
-wrote 2097152/2097152 bytes at offset 0
-2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-
-{"execute": "human-monitor-command", "arguments": {"command-line": "commit 
drive0"}}
-{"return": ""}
-image: TEST_IMG
-file format: IMGFMT
-virtual size: 2 MiB (2097152 bytes)
-cluster_size: 65536
-backing file: TEST_DIR/PID-base
-backing file format: IMGFMT
-Format specific information:
-    compat: 1.1
-    compression type: COMPRESSION_TYPE
-    lazy refcounts: false
-    refcount bits: 16
-    corrupt: false
-    extended l2: false
-
-read 1048576/1048576 bytes at offset 0
-1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-
-read 1048576/1048576 bytes at offset 1048576
-1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-
 === Testing QMP active commit (top -> mid) ===
 wrote 2097152/2097152 bytes at offset 0
 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)

-- 
2.56.0.rc0.29.g47ce80527c56


Reply via email to