]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemumonitorjson: Add only required replies for blockstats test
authorPeter Krempa <pkrempa@redhat.com>
Mon, 18 Jun 2018 08:22:18 +0000 (10:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Jul 2018 04:34:08 +0000 (06:34 +0200)
testQemuMonitorJSONqemuMonitorJSONGetBlockStatsInfo added 4 replies but
only one was used. Additionally the comment stated that 7 replies are
going to be added.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
tests/qemumonitorjsontest.c

index 2eefd06b6e80e74db3036598c6adffbbe6e9caa8..7da362bbf37f2a1b89aae829811b1e8c6a712c4c 100644 (file)
@@ -1772,11 +1772,7 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockStatsInfo(const void *data)
     if (!test)
         return -1;
 
-    /* fill in seven times - we are gonna ask seven times later on */
-    if (qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0 ||
-        qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0 ||
-        qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0 ||
-        qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0)
+    if (qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0)
         goto cleanup;
 
 #define CHECK0FULL(var, value, varformat, valformat) \