From 1950f30ee77df938a76159f07fe8f8ca3ef14cf8 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Wed, 3 Jun 2015 12:03:05 +0530 Subject: tests: rebalance completed should only check the status for completed Change-Id: I1abc91cefaf16d1c8351f35e951c26078ef90544 BUG: 1227590 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/11055 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: N Balachandran Reviewed-by: Krishnan Parthasarathi --- tests/dht.rc | 4 ++-- 1 file 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 -- cgit