[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 09/12] iotests.py: add filter_img_check
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v3 09/12] iotests.py: add filter_img_check |
Date: |
Mon, 17 Aug 2020 12:15:50 +0300 |
Add analog of bash _filter_qemu_img_check to python framework.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
tests/qemu-iotests/iotests.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 369e9918b4..ef3da4ee61 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -402,6 +402,10 @@ def filter_img_info(output, filename):
lines.append(line)
return '\n'.join(lines)
+def filter_img_check(msg):
+ msg = re.sub(r'.*allocated.*fragmented.*compressed clusters', '', msg)
+ return re.sub(r'Image end offset: [0-9]+', '', msg).strip()
+
def filter_imgfmt(msg):
return msg.replace(imgfmt, 'IMGFMT')
--
2.18.0
- Re: [PATCH v3 04/12] block/io: bdrv_wait_serialising_requests_locked: drop extra bs arg, (continued)
- [PATCH v3 06/12] block: introduce BDRV_REQ_NO_WAIT flag, Vladimir Sementsov-Ogievskiy, 2020/08/17
- [PATCH v3 05/12] block: bdrv_mark_request_serialising: split non-waiting function, Vladimir Sementsov-Ogievskiy, 2020/08/17
- [PATCH v3 07/12] block: introduce preallocate filter, Vladimir Sementsov-Ogievskiy, 2020/08/17
- [PATCH v3 08/12] iotests.py: add verify_o_direct helper, Vladimir Sementsov-Ogievskiy, 2020/08/17
- [PATCH v3 11/12] block: add bdrv_is_file_on_fuse helper, Vladimir Sementsov-Ogievskiy, 2020/08/17
- [PATCH v3 09/12] iotests.py: add filter_img_check,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v3 10/12] iotests: add 298 to test new preallocate filter driver, Vladimir Sementsov-Ogievskiy, 2020/08/17
- [PATCH v3 12/12] block/qcow2: automatically insert preallocate filter when on FUSE, Vladimir Sementsov-Ogievskiy, 2020/08/17
- Re: [PATCH v3 00/12] preallocate filter, no-reply, 2020/08/17
- Re: [PATCH v3 00/12] preallocate filter, no-reply, 2020/08/17