From: Ma Xinjian <maxj.fnst@fujitsu.com>
To: fstests@vger.kernel.org
Cc: Ma Xinjian <maxj.fnst@fujitsu.com>
Subject: [PATCH] generic/747: Redirect stderr of _scratch_mkfs_sized
Date: Thu, 6 Jun 2024 13:58:00 +0800 [thread overview]
Message-ID: <20240606055759.2594-1-maxj.fnst@fujitsu.com> (raw)
The mkfs tool may output some information into stderr, which will cause the
output check failed.
In _scratch_mkfs_sized, the return value of mkfs tool is checked. So the
error message can be redirect to stdout, just like what other cases do.
Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
tests/generic/747 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/generic/747 b/tests/generic/747
index 50b7ae11..a0da1be5 100755
--- a/tests/generic/747
+++ b/tests/generic/747
@@ -99,7 +99,7 @@ seed=$RANDOM
RANDOM=$seed
echo "Running test with seed=$seed" >>$seqres.full
-_scratch_mkfs_sized $((8 * 1024 * 1024 * 1024)) >>$seqres.full
+_scratch_mkfs_sized $((8 * 1024 * 1024 * 1024)) >>$seqres.full 2>&1
_scratch_mount
echo "Starting fillup using direct IO"
--
2.39.3
next reply other threads:[~2024-06-06 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 5:58 Ma Xinjian [this message]
2024-06-06 14:55 ` [PATCH] generic/747: Redirect stderr of _scratch_mkfs_sized Darrick J. Wong
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=20240606055759.2594-1-maxj.fnst@fujitsu.com \
--to=maxj.fnst@fujitsu.com \
--cc=fstests@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.