It does not matter, and this lets the test work with different refcount widths.
Signed-off-by: Max Reitz <mre...@redhat.com> --- 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