On 2/8/19 9:06 AM, Andrey Shinkevich wrote: > A new test file 242 added to the qemu-iotests set. It checks > the format of qcow2 specific information for the new added > section that lists details of bitmaps. > > Signed-off-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com> > --- > tests/qemu-iotests/242 | 103 ++++++++++++++++++++++++++++ > tests/qemu-iotests/242.out | 165 > +++++++++++++++++++++++++++++++++++++++++++++ > tests/qemu-iotests/group | 1 + > 3 files changed, 269 insertions(+) > create mode 100755 tests/qemu-iotests/242 > create mode 100644 tests/qemu-iotests/242.out >
> + > +iotests.verify_image_format(supported_fmts=['qcow2']) > + > +disk = file_path('disk') > +chunk = 256*1024 > +bitmap_flag_unknown = 1 << 2 > +#flag_offset = 5*cluster_size + flag_offset_in_bitmap_directory_entry pep8 didn't like the comment (missing space after #). I guess it doesn't care about spaces or lack of spaces around binary operators (I might have pug spaces around * in the assignment to chunk, but since pep8 didn't complain, I didn't change it). As mentioned in the cover letter, adding: log('Test complete') at the end of 242, and adjusting 242.out accordingly, silences the checkpatch warning. So with that change, I've now queued your series for my next NBD pull request, probably on Monday. Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature