summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2015-06-03 12:03:05 +0530
committerKrishnan Parthasarathi <kparthas@redhat.com>2015-06-17 01:47:00 -0700
commit1950f30ee77df938a76159f07fe8f8ca3ef14cf8 (patch)
tree6f62b31585a5f86c02491a70a07a7eac9ae8803b
parente902df70f8157db4db503b7ec3c2635b08b3dcb2 (diff)
tests: rebalance completed should only check the status for completed
Change-Id: I1abc91cefaf16d1c8351f35e951c26078ef90544 BUG: 1227590 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>
-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