linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] xfstests: fix interference output of the balance program in case 265
@ 2012-08-24  1:41 Miao Xie
  0 siblings, 0 replies; only message in thread
From: Miao Xie @ 2012-08-24  1:41 UTC (permalink / raw)
  To: Linux Btrfs, xfs; +Cc: anand.jain

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-24  1:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24  1:41 [PATCH 1/3] xfstests: fix interference output of the balance program in case 265 Miao Xie

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).