From: Miao Xie <miaox@cn.fujitsu.com>
To: Linux Btrfs <linux-btrfs@vger.kernel.org>, xfs@oss.sgi.com
Cc: anand.jain@oracle.com
Subject: [PATCH 1/3] xfstests: fix interference output of the balance program in case 265
Date: Fri, 24 Aug 2012 09:41:28 +0800 [thread overview]
Message-ID: <5036DBC8.9000207@cn.fujitsu.com> (raw)
The balance program of btrfs outputs the result after it is done, but it
will make the test program fail because the test program thinks it is
not the expected result. So we just throw that information away to fix this
problem.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
---
265 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/265 b/265
index 10f214f..ec8410c 100755
--- a/265
+++ b/265
@@ -110,7 +110,7 @@ _test_add()
for i in `seq 1 $n`; do
btrfs device add ${devs[$i]} $SCRATCH_MNT > /dev/null 2>&1 || _fail "device add failed"
done
- btrfs filesystem balance $SCRATCH_MNT || _fail "balance failed"
+ btrfs filesystem balance $SCRATCH_MNT 1> /dev/null || _fail "balance failed"
umount $SCRATCH_MNT
}
@@ -153,7 +153,7 @@ _test_replace()
# in some system balance fails if there is no delay (a bug)
# putting sleep 10 to work around as of now
# sleep 10
- btrfs fi balance $SCRATCH_MNT || _fail "dev balance failed"
+ btrfs fi balance $SCRATCH_MNT 1> /dev/null || _fail "dev balance failed"
# cleaup. add the removed disk
umount $SCRATCH_MNT
--
1.7.6.5
reply other threads:[~2012-08-24 1:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=5036DBC8.9000207@cn.fujitsu.com \
--to=miaox@cn.fujitsu.com \
--cc=anand.jain@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=xfs@oss.sgi.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;
as well as URLs for NNTP newsgroup(s).