mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
tests: qemucapsprobe: Fix output after switching to jansson
Jansson does not put a newline at the end of formatted JSON strings. This breaks the qemucapsprobe utility as we need to keep the spacing so that tests work. Add an explicit newline. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
78f47a6395
commit
397447f805
@ -76,6 +76,7 @@ qemuMonitorSend(qemuMonitorPtr mon,
|
||||
printLineSkipEmpty("\n", stdout);
|
||||
|
||||
printLineSkipEmpty(reformatted, stdout);
|
||||
printLineSkipEmpty("\n", stdout);
|
||||
VIR_FREE(reformatted);
|
||||
|
||||
return realQemuMonitorSend(mon, msg);
|
||||
@ -116,6 +117,7 @@ qemuMonitorJSONIOProcessLine(qemuMonitorPtr mon,
|
||||
printLineSkipEmpty("\n", stdout);
|
||||
|
||||
printLineSkipEmpty(json, stdout);
|
||||
printLineSkipEmpty("\n", stdout);
|
||||
}
|
||||
|
||||
cleanup:
|
||||
|
Loading…
Reference in New Issue
Block a user