From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: misc-test/034: Avoid debug log populating stdout
Date: Wed, 24 Jul 2019 15:19:08 +0200 [thread overview]
Message-ID: <20190724131908.GL2868@twin.jikos.cz> (raw)
In-Reply-To: <5d20c4d5-17c0-a40c-f762-e8f35a3cf598@gmx.com>
On Wed, Jul 24, 2019 at 07:47:33PM +0800, Qu Wenruo wrote:
>
>
> On 2019/7/24 下午6:52, David Sterba wrote:
> > On Wed, Jul 24, 2019 at 01:07:05PM +0800, Qu Wenruo wrote:
> >> When running misc-test/034, we got unexpected log output:
> >> [TEST/misc] 033-filename-length-limit
> >> [TEST/misc] 034-metadata-uuid
> >> Checking btrfstune logic
> >> Checking dump-super output
> >> Checking output after fsid change
> >> Checking for incompat textual representation
> >> Checking setting fsid back to original
> >> Testing btrfs-image restore
> >>
> >> This is caused by commit 2570cff076b1 ("btrfs-progs: test: cleanup misc-tests/034")
> >> which uses _log facility which also populates stdout.
> >>
> >> Revert to echo "$*" >> "$RESULTS" to remove the noise.
> >
> > Yes to remove the noise but the idea was to avoid manual redirections to
> > $RESULTS, so we need a new helper or adjust _log.
> >
>
> OK, I'll change _log to avoid populating stdout.
There are more calls to 'echo ... $RESULTS' in several tests, so that
would be good to unify.
> BTW, the reason I didn't change _log is at commit e547fdb16667
> ("btrfs-progs: tests, add more common helpers") it's using _log in
> _run_mayfail(), but now it's not.
I see, the code has evolved. The helpers like run_mayfail are allowed to
use the raw calls (or can use own internal helpers if that makes sense),
and we can make _log exclusively used by tests, once it does print to
stdout.
> So some commits are doing conflicting modification during that cleanup.
Yeah.
prev parent reply other threads:[~2019-07-24 13:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-24 5:07 [PATCH] btrfs-progs: misc-test/034: Avoid debug log populating stdout Qu Wenruo
2019-07-24 10:52 ` David Sterba
2019-07-24 11:47 ` Qu Wenruo
2019-07-24 13:19 ` David Sterba [this message]
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=20190724131908.GL2868@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.com \
--cc=wqu@suse.com \
/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