summaryrefslogtreecommitdiffstats
path: root/tests/features
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2014-08-05 12:35:10 -0700
committerVijay Bellur <vbellur@redhat.com>2014-08-06 04:39:20 -0700
commit9978e61dc51d0318f92b1f2c2cbebfe9ce70b2ea (patch)
treebfee654bc514f21c0fd0312b20e0ec86b0748144 /tests/features
parent8111756d0f7ff8b7e92cbb4ddb3833f72830e0b3 (diff)
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 <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/8421 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/features')
-rwxr-xr-xtests/features/weighted-rebalance.t4
1 files changed, 2 insertions, 2 deletions
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