Skip to content

RFC qtest: Log verbosity changes

Fabiano Rosas qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/qtest: Mute QEMU stderrtests/qtest/libqtest.c tests/qtest/test-x86-cpuid-compat.c+10 -20 replies
2/2tests/qtest: Mute -qtest-logtests/qtest/libqtest.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] qtest: Log verbosity changes

Hi,

This series silences QEMU stderr unless the QTEST_LOG variable is set and silences -qtest-log unless both QTEST_LOG and gtest's --verbose flag is passed.

This was motivated by Peter Maydell's ask to suppress deprecation warn_report messages from the migration-tests and by my own frustration over noisy output from qtest.

I'm open to suggestions on how to better implement this. One option would be to ignore g_test_verbose() and have QTEST_LOG levels (1,2,3,...), but before I get too deep into that, here are the raw patches for discussion.

Note that it's not possible to use glib's g_test_trap_assert_stderr() to silence the warnings because when using any verbose option the output of QEMU, libqmp and qtest-log gets interleaved on stderr, failing the match.

Thanks

CI run: https://gitlab.com/farosas/qemu/-/pipelines/1442270209

Fabiano Rosas (2):
tests/qtest: Mute QEMU stderr
tests/qtest: Mute -qtest-log

 tests/qtest/libqtest.c              | 8 +++++---
 tests/qtest/test-x86-cpuid-compat.c | 6 ++++++
 2 files changed, 11 insertions(+), 3 deletions(-)
Signature · 1 line
2.35.3