iotests: Use convert -n in some cases
commit620a628db02a3649705a975df8c00a4c6563788a
authorMax Reitz <mreitz@redhat.com>
Tue, 27 Oct 2020 19:05:49 +0000 (27 20:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Dec 2020 16:52:40 +0000 (11 17:52 +0100)
tree28b5a7f986b83993dda441a1bb747de14b6e43e6
parentd81fe252a22d0cbcf78931b9ab3445ad9c30638e
iotests: Use convert -n in some cases

qemu-img convert (without -n) can often be replaced by a combination of
_make_test_img + qemu-img convert -n.  Doing so allows converting to
protocols that do not allow direct file creation, such as FUSE exports.
The only problem is that for formats other than qcow2 and qed (qcow1 at
least), this may lead to high disk usage for some reason, so we cannot
do it everywhere.

But we can do it in 028 and 089, so let us do that so they can run on
FUSE exports.  Also, in 028 this allows us to remove a 9-line comment
that used to explain why we cannot safely filter drive-backup's image
creation output.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201027190600.192171-10-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/028
tests/qemu-iotests/028.out
tests/qemu-iotests/089
tests/qemu-iotests/089.out