qemu-iotests: Add iotests.img_info_log()
commit6b605adec4d7491488d9cfb50bc256e667d8caf1
authorKevin Wolf <kwolf@redhat.com>
Thu, 24 May 2018 11:12:56 +0000 (24 13:12 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 May 2018 11:31:12 +0000 (30 13:31 +0200)
tree7c38d7eaf4c54a5378483ebe51ee9ef9a494a8c0
parente234398a8e142fd0cfe571f7efb0e6a2f34fe73d
qemu-iotests: Add iotests.img_info_log()

This adds a filter function to postprocess 'qemu-img info' input
(similar to what _img_info does), and an img_info_log() function that
calls 'qemu-img info' and logs the filtered output.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
tests/qemu-iotests/iotests.py