[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 11/19] iotests/common.rc: introduce _qcow2_dump_header helper
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v4 11/19] iotests/common.rc: introduce _qcow2_dump_header helper |
Date: |
Fri, 3 Dec 2021 14:07:29 +0100 |
We'll use it in tests instead of explicit qcow2.py. Then we are going
to add some filtering in _qcow2_dump_header.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
---
tests/qemu-iotests/common.rc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc
index d8582454de..5dea310ea0 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -996,5 +996,15 @@ _require_one_device_of()
_notrun "$* not available"
}
+_qcow2_dump_header()
+{
+ img="$1"
+ if [ -z "$img" ]; then
+ img="$TEST_IMG"
+ fi
+
+ $PYTHON qcow2.py "$img" dump-header
+}
+
# make sure this script returns success
true
--
2.31.1
- [PATCH v4 17/19] iotests: declare lack of support for compresion_type in IMGOPTS, (continued)
- [PATCH v4 17/19] iotests: declare lack of support for compresion_type in IMGOPTS, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 18/19] iotests.py: implement unsupported_imgopts, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 09/19] iotest 302: use img_info_log() helper, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 07/19] iotests.py: filter out successful output of qemu-img create, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 10/19] qcow2: simple case support for downgrading of qcow2 images with zstd, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 19/19] iotests: specify some unsupported_imgopts for python iotests, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 11/19] iotests/common.rc: introduce _qcow2_dump_header helper,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v4 04/19] iotests.py: rewrite default luks support in qemu_img, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 12/19] iotests: massive use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 14/19] iotests: bash tests: filter compression type, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 13/19] iotest 39: use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 15/19] iotests 60: more accurate set dirty bit in qcow2 header, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 16/19] iotest 214: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 01/19] iotests.py: img_info_log(): rename imgopts argument, Vladimir Sementsov-Ogievskiy, 2021/12/03
- [PATCH v4 06/19] iotest 065: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/12/03