[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/67] iotests/242: Hide refcount bit information
From: |
Max Reitz |
Subject: |
[PATCH 13/67] iotests/242: Hide refcount bit information |
Date: |
Tue, 1 Oct 2019 21:46:21 +0200 |
It does not matter, and this lets the test work with different refcount
widths.
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/242 | 6 +++---
tests/qemu-iotests/242.out | 5 -----
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/tests/qemu-iotests/242 b/tests/qemu-iotests/242
index 7c2685b4cc..21f69a0d2c 100755
--- a/tests/qemu-iotests/242
+++ b/tests/qemu-iotests/242
@@ -35,7 +35,7 @@ flag_offset = 0x5000f
def print_bitmap(extra_args):
log('qemu-img info dump:\n')
- img_info_log(disk, extra_args=extra_args)
+ img_info_log(disk, extra_args=extra_args, hide_fields=['refcount bits'])
result = json.loads(qemu_img_pipe('info', '--force-share',
'--output=json', disk))
if 'bitmaps' in result['format-specific']['data']:
@@ -98,9 +98,9 @@ add_bitmap(1, True, False)
log('Write an unknown bitmap flag \'{}\' into a new QCOW2 image at offset {}'
.format(hex(bitmap_flag_unknown), flag_offset))
toggle_flag(flag_offset)
-img_info_log(disk)
+img_info_log(disk, hide_fields=['refcount bits'])
toggle_flag(flag_offset)
log('Unset the unknown bitmap flag \'{}\' in the bitmap directory entry:\n'
.format(hex(bitmap_flag_unknown)))
-img_info_log(disk)
+img_info_log(disk, hide_fields=['refcount bits'])
log('Test complete')
diff --git a/tests/qemu-iotests/242.out b/tests/qemu-iotests/242.out
index 7ac8404d11..112b389241 100644
--- a/tests/qemu-iotests/242.out
+++ b/tests/qemu-iotests/242.out
@@ -13,7 +13,6 @@ cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
- refcount bits: 16
corrupt: false
No bitmap in JSON format output
@@ -38,7 +37,6 @@ Format specific information:
flags:
name: bitmap-1
granularity: 32768
- refcount bits: 16
corrupt: false
The same bitmaps in JSON format:
@@ -75,7 +73,6 @@ Format specific information:
[0]: auto
name: bitmap-2
granularity: 65536
- refcount bits: 16
corrupt: false
The same bitmaps in JSON format:
@@ -117,7 +114,6 @@ Format specific information:
[1]: auto
name: bitmap-2
granularity: 65536
- refcount bits: 16
corrupt: false
The same bitmaps in JSON format:
@@ -160,7 +156,6 @@ Format specific information:
[0]: auto
name: bitmap-0
granularity: 16384
- refcount bits: 16
corrupt: false
Test complete
--
2.21.0
- [PATCH 04/67] iotests.py: create_test_image, remove_test_image, (continued)
- [PATCH 06/67] iotests.py: Add image_path(), Max Reitz, 2019/10/01
- [PATCH 08/67] iotests.py: Add filter_json_filename(), Max Reitz, 2019/10/01
- [PATCH 09/67] iotests.py: Add @hide_fields to img_info_log, Max Reitz, 2019/10/01
- [PATCH 05/67] iotests.py: Add ImagePaths, Max Reitz, 2019/10/01
- [PATCH 12/67] iotests/228: Filter json:{} filenames, Max Reitz, 2019/10/01
- [PATCH 13/67] iotests/242: Hide refcount bit information,
Max Reitz <=
- [PATCH 07/67] iotests.py: Filter data_file in filter_img_info, Max Reitz, 2019/10/01
- [PATCH 11/67] iotests/224: Filter json:{} from commit command, Max Reitz, 2019/10/01
- [PATCH 14/67] iotests: Use unsupported_imgopts in Python tests, Max Reitz, 2019/10/01
- [PATCH 10/67] iotests/169: Skip persistent cases for compat=0.10, Max Reitz, 2019/10/01
- [PATCH 15/67] iotests/030: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 18/67] iotests/044: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 16/67] iotests/040: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 17/67] iotests/041: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 19/67] iotests/045: Honor $IMGOPTS, Max Reitz, 2019/10/01
- [PATCH 21/67] iotests/056: Honor $IMGOPTS, Max Reitz, 2019/10/01