mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-06 20:00:05 +00:00
testQemuAgentFSTrim: Rewrite using qemuMonitorTestAddItemVerbatim
Replace qemuMonitorTestAddItemParams by qemuMonitorTestAddItemVerbatim Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5e7def0b81
commit
b4f07b371d
@ -197,10 +197,11 @@ testQemuAgentFSTrim(const void *data)
|
||||
if (qemuMonitorTestAddAgentSyncResponse(test) < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuMonitorTestAddItemParams(test, "guest-fstrim",
|
||||
"{ \"return\" : {} }",
|
||||
"minimum", "1337",
|
||||
NULL) < 0)
|
||||
if (qemuMonitorTestAddItemVerbatim(test,
|
||||
"{\"execute\":\"guest-fstrim\","
|
||||
" \"arguments\": {\"minimum\":1337}}",
|
||||
NULL,
|
||||
"{ \"return\" : {}}") < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuAgentFSTrim(qemuMonitorTestGetAgent(test), 1337) < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user