From: Peter Krempa Date: Thu, 12 Jul 2018 11:36:48 +0000 (+0200) Subject: tests: qemumonitorjson: Raise the necessary debug level for QAPI schema checks X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1fc11023913ffc50f918cd213033f3a943817b17;p=libvirt.git tests: qemumonitorjson: Raise the necessary debug level for QAPI schema checks 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 --- diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index 9039cef423..fce2108932 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests/qemumonitorjsontest.c @@ -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);