iotests: add qemu_img_info()
authorJohn Snow <jsnow@redhat.com>
Mon, 21 Mar 2022 20:16:08 +0000 (16:16 -0400)
committerHanna Reitz <hreitz@redhat.com>
Tue, 22 Mar 2022 09:14:31 +0000 (10:14 +0100)
commit9ebb2b765b0d6c6fd5228a736e31acfc10a56315
tree9956298a213712d79f739ec51209b3505711329c
parent0f7d7d72aa99c8e48bbbf37262a9c66c83113f76
iotests: add qemu_img_info()

Add qemu_img_info() by analogy with qemu_img_measure() and
qemu_img_check(). Modify image_size() to use this function instead to
take advantage of the better diagnostic information on failure provided
(ultimately) by qemu_img().

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220321201618.903471-9-jsnow@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
tests/qemu-iotests/065
tests/qemu-iotests/242
tests/qemu-iotests/iotests.py