xfs
[Top] [All Lists]

[PATCH] xfstests: silence btrfs balance in btrfs/003

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfstests: silence btrfs balance in btrfs/003
From: Stefan Behrens <sbehrens@xxxxxxxxxxxxxxxx>
Date: Fri, 16 Aug 2013 16:51:20 +0200
Cc: linux-btrfs@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
This test failed for me with output from 'btrfs balance':
     QA output created by 003
    +Done, had to relocate 4 out of 4 chunks
    +Done, had to relocate 5 out of 5 chunks
     Silence is golden

Signed-off-by: Stefan Behrens <sbehrens@xxxxxxxxxxxxxxxx>
---
 tests/btrfs/003 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/btrfs/003 b/tests/btrfs/003
index 3790935..795badb 100755
--- a/tests/btrfs/003
+++ b/tests/btrfs/003
@@ -109,7 +109,7 @@ _test_add()
        for i in `seq 1 $n`; do
                $BTRFS_UTIL_PROG device add ${devs[$i]} $SCRATCH_MNT > 
/dev/null 2>&1 || _fail "device add failed"
        done
-       $BTRFS_UTIL_PROG filesystem balance $SCRATCH_MNT || _fail "balance 
failed"
+       $BTRFS_UTIL_PROG filesystem balance $SCRATCH_MNT > /dev/null 2>&1 || 
_fail "balance failed"
        umount $SCRATCH_MNT
 }
 
@@ -152,7 +152,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_UTIL_PROG filesystem balance $SCRATCH_MNT || _fail "dev balance 
failed"
+       $BTRFS_UTIL_PROG filesystem balance $SCRATCH_MNT > /dev/null 2>&1 || 
_fail "dev balance failed"
 
        # cleaup. add the removed disk
        umount $SCRATCH_MNT
-- 
1.8.3.4

<Prev in Thread] Current Thread [Next in Thread>