]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: assume JSON in qemuMonitorTestIO
authorJán Tomko <jtomko@redhat.com>
Fri, 14 Jun 2019 18:39:24 +0000 (20:39 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 20 Jun 2019 10:12:34 +0000 (12:12 +0200)
commit1c4246102a7705f797fdc57721ed9b8dbeb6488f
tree0b5087743b5eeb75580b9f080333aa87e94059fa
parent27f866ba8a02ce07fbc04c82e515c5b94a5f5420
tests: assume JSON in qemuMonitorTestIO

The QMP monitor only uses a newline to separate lines,
while HMP and the guest agent also use a carriage return.

In preparation to dropping support for testing HMP interaction,
only skip the carriage return if we're dealing with the guest agent,
removing the need to check the 'json' field.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
tests/qemumonitortestutils.c