[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 09/10] iotests.py: add filter_img_check
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v5 09/10] iotests.py: add filter_img_check |
Date: |
Fri, 21 Aug 2020 17:11:22 +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 7f1aa187a9..14f1d47d52 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -403,6 +403,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
- Re: [PATCH v5 07/10] block: introduce preallocate filter, (continued)
- Re: [PATCH v5 07/10] block: introduce preallocate filter, Max Reitz, 2020/08/25
- Re: [PATCH v5 07/10] block: introduce preallocate filter, Vladimir Sementsov-Ogievskiy, 2020/08/26
- Re: [PATCH v5 07/10] block: introduce preallocate filter, Max Reitz, 2020/08/26
- Re: [PATCH v5 07/10] block: introduce preallocate filter, Vladimir Sementsov-Ogievskiy, 2020/08/26
- Re: [PATCH v5 07/10] block: introduce preallocate filter, Max Reitz, 2020/08/26
- Re: [PATCH v5 07/10] block: introduce preallocate filter, Vladimir Sementsov-Ogievskiy, 2020/08/26
- Re: [PATCH v5 07/10] block: introduce preallocate filter, David Edmondson, 2020/08/26
- Re: [PATCH v5 07/10] block: introduce preallocate filter, Vladimir Sementsov-Ogievskiy, 2020/08/27
[PATCH v5 08/10] iotests.py: add verify_o_direct helper, Vladimir Sementsov-Ogievskiy, 2020/08/21
[PATCH v5 09/10] iotests.py: add filter_img_check,
Vladimir Sementsov-Ogievskiy <=
[PATCH v5 10/10] iotests: add 298 to test new preallocate filter driver, Vladimir Sementsov-Ogievskiy, 2020/08/21
Re: [PATCH v5 00/10] preallocate filter, Vladimir Sementsov-Ogievskiy, 2020/08/27