[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/15] iotests: Filter testfiles out in filter_img_info()
From: |
Kevin Wolf |
Subject: |
[PULL 10/15] iotests: Filter testfiles out in filter_img_info() |
Date: |
Thu, 30 Apr 2020 17:52:26 +0200 |
We want to keep TEST_IMG for the full path of the main test image, but
filter_testfiles() must be called for other test images before replacing
other things like the image format because the test directory path could
contain the format as a substring.
Insert a filter_testfiles() call between both.
Signed-off-by: Kevin Wolf <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
Reviewed-by: Vladimir Sementsov-Ogievskiy <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/qemu-iotests/iotests.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 7bc4934cd2..5f8c263d59 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -338,8 +338,9 @@ def filter_img_info(output, filename):
for line in output.split('\n'):
if 'disk size' in line or 'actual-size' in line:
continue
- line = line.replace(filename, 'TEST_IMG') \
- .replace(imgfmt, 'IMGFMT')
+ line = line.replace(filename, 'TEST_IMG')
+ line = filter_testfiles(line)
+ line = line.replace(imgfmt, 'IMGFMT')
line = re.sub('iters: [0-9]+', 'iters: XXX', line)
line = re.sub('uuid: [-a-f0-9]+', 'uuid:
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX', line)
line = re.sub('cid: [0-9]+', 'cid: XXXXXXXXXX', line)
--
2.25.3
- [PULL 00/15] Block layer patches, Kevin Wolf, 2020/04/30
- [PULL 01/15] qcow2: Add incompatibility note between backing files and raw external data files, Kevin Wolf, 2020/04/30
- [PULL 02/15] qemu-iotests: allow qcow2 external discarded clusters to contain stale data, Kevin Wolf, 2020/04/30
- [PULL 03/15] block: Add flags to BlockDriver.bdrv_co_truncate(), Kevin Wolf, 2020/04/30
- [PULL 05/15] block-backend: Add flags to blk_truncate(), Kevin Wolf, 2020/04/30
- [PULL 04/15] block: Add flags to bdrv(_co)_truncate(), Kevin Wolf, 2020/04/30
- [PULL 06/15] qcow2: Support BDRV_REQ_ZERO_WRITE for truncate, Kevin Wolf, 2020/04/30
- [PULL 07/15] raw-format: Support BDRV_REQ_ZERO_WRITE for truncate, Kevin Wolf, 2020/04/30
- [PULL 08/15] file-posix: Support BDRV_REQ_ZERO_WRITE for truncate, Kevin Wolf, 2020/04/30
- [PULL 09/15] block: truncate: Don't make backing file data visible, Kevin Wolf, 2020/04/30
- [PULL 10/15] iotests: Filter testfiles out in filter_img_info(),
Kevin Wolf <=
- [PULL 12/15] qcow2: Forward ZERO_WRITE flag for full preallocation, Kevin Wolf, 2020/04/30
- [PULL 11/15] iotests: Test committing to short backing file, Kevin Wolf, 2020/04/30
- [PULL 13/15] nvme: introduce PMR support from NVMe 1.4 spec, Kevin Wolf, 2020/04/30
- [PULL 15/15] qemu-storage-daemon: Fix non-string --object properties, Kevin Wolf, 2020/04/30
- [PULL 14/15] qom: Factor out user_creatable_add_dict(), Kevin Wolf, 2020/04/30