Re: [PATCH 08/18] testQemuAgentFSTrim: Rewrite using qemuMonitorTestAddItemVerbatim

2023-06-02 Thread Ján Tomko

On a Thursday in 2023, Peter Krempa wrote:

Replace qemuMonitorTestAddItemParams by qemuMonitorTestAddItemVerbatim

Signed-off-by: Peter Krempa 
---
tests/qemuagenttest.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)



Reviewed-by: Ján Tomko 

Jano


signature.asc
Description: PGP signature


[PATCH 08/18] testQemuAgentFSTrim: Rewrite using qemuMonitorTestAddItemVerbatim

2023-05-25 Thread Peter Krempa
Replace qemuMonitorTestAddItemParams by qemuMonitorTestAddItemVerbatim

Signed-off-by: Peter Krempa 
---
 tests/qemuagenttest.c | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/qemuagenttest.c b/tests/qemuagenttest.c
index 04faf7b83a..3c24a3139f 100644
--- a/tests/qemuagenttest.c
+++ b/tests/qemuagenttest.c
@@ -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)
-- 
2.40.1