summaryrefslogtreecommitdiffstats
path: root/tests/dht.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dht.rc')
-rw-r--r--tests/dht.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/dht.rc b/tests/dht.rc
index 1c811a63c6e..ee92a47bd62 100644
--- a/tests/dht.rc
+++ b/tests/dht.rc
@@ -70,3 +70,16 @@ function get_hashed_brick()
return $hashed
}
+
+
+function rebalance_completed()
+{
+ val=1
+ test=`gluster volume rebalance $V0 status |grep localhost|grep -v "in progress" 2>&1`
+ if [ $? -eq 0 ]
+ then
+ val=0
+ fi
+
+ echo $val
+}