From: John Snow <jsnow@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, John Snow <jsnow@redhat.com>,
qemu-block@nongnu.org, Max Reitz <mreitz@redhat.com>
Subject: [PATCH 2/3] iotests: log to stderr instead of stdout
Date: Thu, 14 May 2020 16:16:13 -0400 [thread overview]
Message-ID: <20200514201614.19941-3-jsnow@redhat.com> (raw)
In-Reply-To: <20200514201614.19941-1-jsnow@redhat.com>
Separate the streams; stdout is for test diff output, stderr is for
control messages and things for the human to look at.
(Cough, unfortunately, I didn't realize that ./check actually just
always redirects both, so even on STDERR, you can't see warnings.
Oh well...)
Signed-off-by: John Snow <jsnow@redhat.com>
---
tests/qemu-iotests/iotests.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 1caa7812de..9231767acf 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -1171,7 +1171,11 @@ def execute_setup_common(supported_fmts: Sequence[str] = (),
debug = '-d' in sys.argv
if debug:
sys.argv.remove('-d')
- logging.basicConfig(level=(logging.DEBUG if debug else logging.WARN))
+
+ logging.basicConfig(
+ level=logging.DEBUG if debug else logging.WARN,
+ stream=sys.stderr,
+ )
_verify_image_format(supported_fmts, unsupported_fmts)
_verify_protocol(supported_protocols, unsupported_protocols)
--
2.21.1
next prev parent reply other threads:[~2020-05-14 20:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 20:16 [PATCH 0/3] iotests: enable logging prior to notrun() invocation John Snow
2020-05-14 20:16 ` [PATCH 1/3] iotests: log messages from notrun() John Snow
2020-05-14 20:16 ` John Snow [this message]
2020-05-14 20:16 ` [PATCH 3/3] iotests: Categorize NOTRUN messages as INFO, not WARNING John Snow
2020-05-15 9:57 ` [PATCH 0/3] iotests: enable logging prior to notrun() invocation Kevin Wolf
2020-05-18 18:33 ` John Snow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200514201614.19941-3-jsnow@redhat.com \
--to=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).