iotests: replace unchecked calls to qemu_img_pipe()
commit3d53818ff70ebbb09288c494080cf6717e1713ce
authorJohn Snow <jsnow@redhat.com>
Mon, 21 Mar 2022 20:16:12 +0000 (21 16:16 -0400)
committerHanna Reitz <hreitz@redhat.com>
Tue, 22 Mar 2022 09:14:36 +0000 (22 10:14 +0100)
treed7ed8e46c7003574191e34b9e62d25cdddbfe643
parent78d04761294c29f115bf8e3a53f4e04521069394
iotests: replace unchecked calls to qemu_img_pipe()

qemu_img_pipe() discards the return code from qemu-img in favor of
returning just its output. Some tests using this function don't save,
log, or check the output either, though, which is unsafe.

Replace all of these calls with a checked version.

Tests affected are 194, 202, 203, 234, 262, and 303.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220321201618.903471-13-jsnow@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
tests/qemu-iotests/194
tests/qemu-iotests/202
tests/qemu-iotests/203
tests/qemu-iotests/234
tests/qemu-iotests/262
tests/qemu-iotests/303