[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 0/2] qtest: Log verbosity changes
From: |
Fabiano Rosas |
Subject: |
[RFC PATCH 0/2] qtest: Log verbosity changes |
Date: |
Thu, 5 Sep 2024 18:03:26 -0300 |
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(-)
--
2.35.3
- [RFC PATCH 0/2] qtest: Log verbosity changes,
Fabiano Rosas <=
- [RFC PATCH 1/2] tests/qtest: Mute QEMU stderr, Fabiano Rosas, 2024/09/05
- [RFC PATCH 2/2] tests/qtest: Mute -qtest-log, Fabiano Rosas, 2024/09/05
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Thomas Huth, 2024/09/06
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Daniel P . Berrangé, 2024/09/06
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Peter Maydell, 2024/09/06
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Fabiano Rosas, 2024/09/06
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Markus Armbruster, 2024/09/13
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Peter Maydell, 2024/09/13
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Markus Armbruster, 2024/09/13
- Re: [RFC PATCH 0/2] qtest: Log verbosity changes, Peter Maydell, 2024/09/13