RFC qtest: Log verbosity changes
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tests/qtest: Mute QEMU stderrtests/ tests/ | +10 | 0 replies | |
| 2/2 | tests/qtest: Mute -qtest-logtests/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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