iotests: implement pretty-print for log and qmp_log
commit55cd64eab5cb7958c629edbf5f2233b87dfbd1b0
authorJohn Snow <jsnow@redhat.com>
Fri, 21 Dec 2018 09:35:28 +0000 (21 04:35 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 14 Jan 2019 16:09:46 +0000 (14 10:09 -0600)
tree7676ead47b53de931fd1761c20378a674fba021a
parent08fcd6111e1949f456e1b232ebeeb0cc17019a92
iotests: implement pretty-print for log and qmp_log

If iotests have lines exceeding >998 characters long, git doesn't
want to send it plaintext to the list. We can solve this by allowing
the iotests to use pretty printed QMP output that we can match against
instead.

As a bonus, it's much nicer for human eyes too.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20181221093529.23855-11-jsnow@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/iotests.py