[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 09/10] iotests.py: add filter_img_check
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v4 09/10] iotests.py: add filter_img_check |
Date: |
Thu, 20 Aug 2020 21:39:49 +0300 |
Add analog of bash _filter_qemu_img_check to python framework.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.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.21.3
- [PATCH v4 01/10] block: simplify comment to BDRV_REQ_SERIALISING, (continued)
- [PATCH v4 01/10] block: simplify comment to BDRV_REQ_SERIALISING, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 02/10] block/io.c: drop assertion on double waiting for request serialisation, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 03/10] block/io: split out bdrv_find_conflicting_request, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 04/10] block/io: bdrv_wait_serialising_requests_locked: drop extra bs arg, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 05/10] block: bdrv_mark_request_serialising: split non-waiting function, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 06/10] block: introduce BDRV_REQ_NO_WAIT flag, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 07/10] block: introduce preallocate filter, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 08/10] iotests.py: add verify_o_direct helper, Vladimir Sementsov-Ogievskiy, 2020/08/20
- [PATCH v4 09/10] iotests.py: add filter_img_check,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v4 10/10] iotests: add 298 to test new preallocate filter driver, Vladimir Sementsov-Ogievskiy, 2020/08/20
- Re: [PATCH v4 00/10] preallocate filter, no-reply, 2020/08/20