From 9978e61dc51d0318f92b1f2c2cbebfe9ce70b2ea Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 5 Aug 2014 12:35:10 -0700 Subject: tests: weighted-rebalance.t shouldn't write to '/dev/tty' On our jenkins instance "/dev/tty" doesn't exist, necessary output fails as below message ~~~ ./tests/features/weighted-rebalance.t: \ line 72: /dev/tty: No such device or address ~~~ Comment out the debugging code Change-Id: Iba29b80c8ba2dcaab3d6654d7c54332a915bffb8 BUG: 1114680 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/8421 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- tests/features/weighted-rebalance.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/features/weighted-rebalance.t b/tests/features/weighted-rebalance.t index a5e746970ae..40098624deb 100755 --- a/tests/features/weighted-rebalance.t +++ b/tests/features/weighted-rebalance.t @@ -69,7 +69,7 @@ TEST umount $M0 # Check that the larger brick got more of the files. nfiles=$(count_files ${B0}/${V0}2) -echo $nfiles $(get_xattr ${B0}/${V0}1) $(get_xattr ${B0}/${V0}2) > /dev/tty +#echo $nfiles $(get_xattr ${B0}/${V0}1) $(get_xattr ${B0}/${V0}2) 3>&2 2>&1 1>&3 3>&- TEST [ $nfiles -ge 580 ] # Turn off the size-weighted rebalance. @@ -79,7 +79,7 @@ TEST $CLI volume set $V0 cluster.weighted-rebalance off TEST $CLI volume rebalance $V0 start force TEST wait_for_rebalance nfiles=$(count_files ${B0}/${V0}2) -echo $nfiles $(get_xattr ${B0}/${V0}1) $(get_xattr ${B0}/${V0}2) > /dev/tty +#echo $nfiles $(get_xattr ${B0}/${V0}1) $(get_xattr ${B0}/${V0}2) 3>&2 2>&1 1>&3 3>&- TEST [ $nfiles -le 580 ] exit 0 -- cgit