[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/14] iotests/common.rc: introduce _qcow2_dump_header helper
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH 09/14] iotests/common.rc: introduce _qcow2_dump_header helper |
Date: |
Mon, 5 Jul 2021 12:15:44 +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>
---
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 4cae5b2d70..ee4b9d795e 100644
--- a/tests/qemu-iotests/common.rc
+++ b/tests/qemu-iotests/common.rc
@@ -994,5 +994,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 03/14] iotest 303: explicit compression type, (continued)
- [PATCH 12/14] iotests 60: more accurate set dirty bit in qcow2 header, Vladimir Sementsov-Ogievskiy, 2021/07/05
- [PATCH 13/14] iotest 39: use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/07/05
- [PATCH 09/14] iotests/common.rc: introduce _qcow2_dump_header helper,
Vladimir Sementsov-Ogievskiy <=
- [PATCH 14/14] iotest 214: explicit compression type, Vladimir Sementsov-Ogievskiy, 2021/07/05
- [PATCH 10/14] iotests: massive use _qcow2_dump_header, Vladimir Sementsov-Ogievskiy, 2021/07/05
- [PATCH 11/14] iotests: bash tests: filter compression type, Vladimir Sementsov-Ogievskiy, 2021/07/05