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>
This commit is contained in:
parent
e902df70f8
commit
1950f30ee7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user