]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest: Decrease the amount of output from the qom-test
authorThomas Huth <thuth@redhat.com>
Mon, 21 Nov 2022 19:42:40 +0000 (20:42 +0100)
committerThomas Huth <thuth@redhat.com>
Wed, 23 Nov 2022 09:58:48 +0000 (10:58 +0100)
commit9f083d618140dd1cae824bb2f8a2ae719db73f13
tree9d68d43c51748fe9d711779373fc6b39f7bf6ae1
parent72cf57b07444c3048069fa9e47decc9cca3956a7
tests/qtest: Decrease the amount of output from the qom-test

The logs in the gitlab-CI have a size constraint, and sometimes
we already hit this limit. The biggest part of the log then seems
to be filled by the qom-test, so we should decrease the size of
the output - which can be done easily by not printing the path
for each property, since the path has already been logged at the
beginning of each node that we handle here.

However, if we omit the path, we should make sure to not recurse
into child nodes in between, so that it is clear to which node
each property belongs. Thus store the children and links in a
temporary list and recurse only at the end of each node, when
all properties have already been printed.

Message-Id: <20221121194240.149268-1-thuth@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/qom-test.c