[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 11/17] iotests/common.rc: introduce _qcow2_dump_header helper
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v3 11/17] iotests/common.rc: introduce _qcow2_dump_header helper |
Date: |
Tue, 14 Sep 2021 13:25:41 +0300 |
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.29.2
- [PATCH v3 01/17] iotests.py: img_info_log(): rename imgopts argument, (continued)
- [PATCH v3 01/17] iotests.py: img_info_log(): rename imgopts argument, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 05/17] iotest 303: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 02/17] iotests.py: qemu_img*("create"): support IMGOPTS='compression_type=zstd', Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 06/17] iotest 065: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 03/17] iotests: drop qemu_img_verbose() helper, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 08/17] iotests.py: filter compression type out, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 09/17] iotest 302: use img_info_log() helper, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 17/17] iotests: declare lack of support for compresion_type in IMGOPTS, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 07/17] iotests.py: filter out successful output of qemu-img create, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 11/17] iotests/common.rc: introduce _qcow2_dump_header helper,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v3 10/17] qcow2: simple case support for downgrading of qcow2 images with zstd, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 12/17] iotests: massive use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 13/17] iotest 39: use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 14/17] iotests: bash tests: filter compression type, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 15/17] iotests 60: more accurate set dirty bit in qcow2 header, Vladimir Sementsov-Ogievskiy, 2021/09/14
- [PATCH v3 16/17] iotest 214: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/09/14
- Re: [PATCH v3 00/17] iotests: support zstd, Hanna Reitz, 2021/09/14
- Re: [PATCH v3 00/17] iotests: support zstd, Hanna Reitz, 2021/09/15