mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
iotests.py: filter compression type out
We want iotests pass with both the default zlib compression and with IMGOPTS='compression_type=zstd'. Actually the only test that is interested in real compression type in test output is 287 (test for qcow2 compression type) and it's in bash. So for now we can safely filter out compression type in all qcow2 tests. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20211223160144.1097696-11-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
a70eeb3d47
commit
e877bba308
4 changed files with 17 additions and 15 deletions
|
@ -497,6 +497,8 @@ def filter_img_info(output, filename):
|
|||
'uuid: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX',
|
||||
line)
|
||||
line = re.sub('cid: [0-9]+', 'cid: XXXXXXXXXX', line)
|
||||
line = re.sub('(compression type: )(zlib|zstd)', r'\1COMPRESSION_TYPE',
|
||||
line)
|
||||
lines.append(line)
|
||||
return '\n'.join(lines)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue