Signed-off-by: Marc-André Lureau <[email protected]>
---
tests/qemu-iotests/172 | 5 +++++
tests/qemu-iotests/267 | 4 ++++
tests/qemu-iotests/common.rc | 7 +++++++
3 files changed, 16 insertions(+)
diff --git a/tests/qemu-iotests/172 b/tests/qemu-iotests/172
index 4da0e0f2e29..40298c0d7c3 100755
--- a/tests/qemu-iotests/172
+++ b/tests/qemu-iotests/172
@@ -39,6 +39,11 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
. ./common.rc
. ./common.filter
+# HMP: info block & info qtree
+# rewrite with qom-list/get + query-block is possible,
+# but hardly in bash
+_require_hmp
+
_supported_fmt qcow2
_supported_proto file
_supported_os Linux
diff --git a/tests/qemu-iotests/267 b/tests/qemu-iotests/267
index 2e2afdad9c5..ff8eed0a44b 100755
--- a/tests/qemu-iotests/267
+++ b/tests/qemu-iotests/267
@@ -38,6 +38,10 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
. ./common.rc
. ./common.filter
+# HMP: savevm/loadvm, info snapshots
+# TODO: rewrite with QMP snapshot-save/load
+_require_hmp
+
_supported_fmt qcow2
_supported_proto file
_supported_os Linux
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index 731e4b2b998..4f51a22f8df 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -1067,6 +1067,13 @@ _require_secret()
rm -f "$TEST_IMG"
}
+_require_hmp()
+{
+ if ! echo quit | $QEMU -M none -monitor stdio > /dev/null 2>&1; then
+ _notrun "HMP monitor not available"
+ fi
+}
+
_qcow2_dump_header()
{
if [[ "$1" == "--no-filter-compression" ]]; then
--
2.54.0