qemu-iotests: Test qemu-img bitmap/commit exit code on error
commit07a4e1f8e5418f36424cd57d5d061b090a238c65
authorKevin Wolf <kwolf@redhat.com>
Thu, 12 Jan 2023 19:14:54 +0000 (12 20:14 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 1 Feb 2023 15:52:15 +0000 (1 16:52 +0100)
treef029987660e38bcf743875b9024dd2d7ba9ef8da
parentc5e477110dcb8ef4642dce399777c3dee68fa96c
qemu-iotests: Test qemu-img bitmap/commit exit code on error

This tests that when an error happens while writing back bitmaps to the
image file in qcow2_inactivate(), 'qemu-img bitmap/commit' actually
return an error value in their exit code instead of making the operation
look successful to scripts.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20230112191454.169353-5-kwolf@redhat.com>
Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/tests/qemu-img-close-errors [new file with mode: 0755]
tests/qemu-iotests/tests/qemu-img-close-errors.out [new file with mode: 0644]