summaryrefslogtreecommitdiffstats
path: root/tests/dht.rc
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-06-03 12:03:05 +0530
committerRaghavendra Talur <rtalur@redhat.com>2015-07-07 01:46:58 -0700
commit662166777a98564ec618104f8378bf0f22cc1b63 (patch)
tree606eea0c5cd7a928286978d9eb3686f2a9d57915 /tests/dht.rc
parent0efffcdb4eccac48d9eac26d7715ce24493ed753 (diff)
tests: rebalance completed should only check the status for completed
Backport of http://review.gluster.org/11055 Change-Id: I1abc91cefaf16d1c8351f35e951c26078ef90544 BUG: 1232602 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/11055 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: N Balachandran <nbalacha@redhat.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> (cherry picked from commit 1950f30ee77df938a76159f07fe8f8ca3ef14cf8) Reviewed-on: http://review.gluster.org/11271 Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/dht.rc')
-rw-r--r--tests/dht.rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dht.rc b/tests/dht.rc
index 0b2496fdb6d..bf5e08b645e 100644
--- a/tests/dht.rc
+++ b/tests/dht.rc
@@ -69,7 +69,7 @@ function get_hashed_brick()
function rebalance_completed()
{
val=1
- test=$(gluster volume rebalance $V0 status | grep localhost | grep -v "in progress" 2>&1)
+ test=$(gluster volume rebalance $V0 status | grep localhost | grep "completed" 2>&1)
if [ $? -eq 0 ]
then
val=0
@@ -86,7 +86,7 @@ function rebalance_completed()
function remove_brick_completed()
{
val=1
- test=$(gluster volume remove-brick $V0 $H0:$B0/${V0}2 status | grep localhost | grep -v "in progress" 2>&1)
+ test=$(gluster volume remove-brick $V0 $H0:$B0/${V0}2 status | grep localhost | grep "completed" 2>&1)
if [ $? -eq 0 ]
then
val=0