OSDN Git Service

iotests/287: Clean up subshell test image
authorMax Reitz <mreitz@redhat.com>
Tue, 27 Oct 2020 19:05:55 +0000 (20:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Dec 2020 16:52:40 +0000 (17:52 +0100)
commit7eadb1e59d331563ad6a1c3efd5ce14357de7344
tree7e0d97f21eb230d8174bbd91915b5a548cb472b8
parentd2d5310c8e892b8b3e853e762f0d1785257e05e5
iotests/287: Clean up subshell test image

287 creates an image in a subshell (thanks to the pipe) to see whether
that is possible with compression_type=zstd.  If _make_test_img were to
modify any global state, this global state would then be lost before we
could cleanup the image.

When using FUSE as the test protocol, this global state is important, so
clean up the image before the state is lost.

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