qemu-iotests: Allow QMP pretty printing in common.qemu
authorKevin Wolf <kwolf@redhat.com>
Thu, 29 Jun 2017 16:54:24 +0000 (18:54 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
commit72538537d818d2870104448ba819b91dc70c241a
treead77ad633da4b276f33cdb591a11ed5b9995f3f7
parent61f09cea01391eaa23ea3bc78ab37a7d2da565fb
qemu-iotests: Allow QMP pretty printing in common.qemu

QMP responses to certain commands can become quite long, which doesn't
only make reading them hard, but also means that the maximum line length
in patch emails can be exceeded. Allow tests to switch to QMP pretty
printing, which results in more, but shorter lines.

We also need to make sure to keep indentation in the response for this
to work as expected.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/common.qemu