]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: qemumonitorjson: Raise the necessary debug level for QAPI schema checks
authorPeter Krempa <pkrempa@redhat.com>
Thu, 12 Jul 2018 11:36:48 +0000 (13:36 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 13 Jul 2018 12:18:07 +0000 (14:18 +0200)
The debug output of the schema validator on success is not so
interesting that it should be printed when basic debugging is enabled.

Print it only when test debugging is set to 3 and more.

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

index 9039cef423f827c5ea59a544884c362914ffdc3f..fce2108932e4c1bf9f8d27b2a8e8312a13e92c43 100644 (file)
@@ -2838,7 +2838,7 @@ testQAPISchema(const void *opaque)
         ret = 0;
     }
 
-    if (virTestGetDebug() ||
+    if (virTestGetDebug() >= 3 ||
         (ret < 0 && virTestGetVerbose())) {
         char *debugstr = virBufferContentAndReset(&debug);
         fprintf(stderr, "\n%s\n", debugstr);