]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: Improve and rename test 291 to qemu-img-bitmap
authorEric Blake <eblake@redhat.com>
Fri, 9 Jul 2021 15:39:49 +0000 (10:39 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 21 Jul 2021 19:14:41 +0000 (14:14 -0500)
commit94075c28eea0755173939dfaf1eae688b224a74e
tree2bbaf44e5a12fdbbb02b916f041d465e230d03ce
parente77c8b8b8e933414ef07dbed04e02973fccffeb0
iotests: Improve and rename test 291 to qemu-img-bitmap

Enhance the test to demonstrate existing less-than-stellar behavior of
qemu-img with a qcow2 image containing an inconsistent bitmap: we
don't diagnose the problem until after copying the entire image (a
potentially long time), and when we do diagnose the failure, we still
end up leaving an empty bitmap in the destination.  This mess will be
cleaned up in the next patch.

While at it, rename the test now that we support useful iotest names,
and fix a missing newline in the error message thus exposed.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210709153951.2801666-2-eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Nir Soffer <nsoffer@redhat.com>
block/dirty-bitmap.c
tests/qemu-iotests/291 [deleted file]
tests/qemu-iotests/291.out [deleted file]
tests/qemu-iotests/tests/qemu-img-bitmaps [new file with mode: 0755]
tests/qemu-iotests/tests/qemu-img-bitmaps.out [new file with mode: 0644]