summary refs log tree commit diff stats
path: root/qapi/string-output-visitor.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2022-03-21 16:16:10 -0400
committerHanna Reitz <hreitz@redhat.com>2022-03-22 10:14:34 +0100
commit1670ae7af668958e76be6749f1f729d6dc9861e9 (patch)
tree09f439af49b7a078bfe58956405d8414238f32f2 /qapi/string-output-visitor.c
parentac5bb4861c233c9483d89dff7ef0fa6f799ca1e7 (diff)
downloadfocaccia-qemu-1670ae7af668958e76be6749f1f729d6dc9861e9.tar.gz
focaccia-qemu-1670ae7af668958e76be6749f1f729d6dc9861e9.zip
iotests: add qemu_img_map() function
Add a qemu_img_map() function by analogy with qemu_img_measure(),
qemu_img_check(), and qemu_img_info() that all return JSON information.

Replace calls to qemu_img_pipe('map', '--output=json', ...) with this
new function, which provides better diagnostic information on failure.

Note: The output for iotest 211 changes, because logging JSON after it
was deserialized by Python behaves a little differently than logging the
raw JSON document string itself.
(iotests.log() sorts the keys for Python 3.6 support.)

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20220321201618.903471-11-jsnow@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'qapi/string-output-visitor.c')
0 files changed, 0 insertions, 0 deletions