]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: add a comment about our fake qmp
authorEric Blake <eblake@redhat.com>
Thu, 31 Jan 2013 01:50:09 +0000 (18:50 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 31 Jan 2013 17:15:33 +0000 (10:15 -0700)
commit949ebc30226f17fcd0916c9e4ab1a909fd117566
tree4b577e3295ad2acf5ae1084354a8bc5a62ad5652
parentd45066a55f866a793f346bde1ac6d0f552aa9e52
tests: add a comment about our fake qmp

While testing QMP, I used a simple qemu session of
'qemu-kvm -M none -nodefaults -nographic -qmp stdio'
for some experiments.  But it took me far too long to remember
the magic invocation to unlock QMP into accepting normal commands.
While I was able to grep libvirt sources and easily find where
libvirt expects the normal "QMP" greeting, I could not find the
proper reply to that greeting nearby.

Reading the testsuite didn't help either, since there we don't
emulate the mandatory handshake.  But since my grep hit the
testsuite, adding a bit of documentation will make it much easier
to jog my memory in the future.

* tests/qemumonitortestutils.c (QEMU_JSON_GREETING): Mention that
the normal counterpart reply is skipped.
tests/qemumonitortestutils.c