qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/qtest/qom-test: Do not print tested properties by defa


From: Thomas Huth
Subject: Re: [PATCH] tests/qtest/qom-test: Do not print tested properties by default
Date: Thu, 15 Dec 2022 15:12:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0

On 15/12/2022 15.04, Peter Maydell wrote:
On Thu, 15 Dec 2022 at 14:01, Thomas Huth <thuth@redhat.com> wrote:

We're still running into the problem that some logs are cut in the
gitlab-CI since they got too big. The biggest part of the log is
still the output of the qom-test. Let's stop printing the properties
by default to get to a saner size here. The full output can still
be enabled by setting V=2 (or higher) in the environment.

Signed-off-by: Thomas Huth <thuth@redhat.com>

@@ -103,6 +107,12 @@ static void add_machine_test_case(const char *mname)

  int main(int argc, char **argv)
  {
+    char *v_env = getenv("V");
+
+    if (v_env && *v_env >= '2') {
+        verbose = true;
+    }

This is a bit cheesy -- I think we should parse the string
to a number properly rather than accepting '2', '23',
'2.89237', '2e45' '2fast2furious' etc :-)

Ok, true, it's a little bit weird that it's verbose for V=9 but not for V=10 ... I'll rework the patch and send a patch for hmp-test.c, too (where I've copied the code from).

 Thomas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]