From b38d98e706724eb80a822f82c3c265d3ea41ff54 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Mon, 4 Mar 2013 16:23:46 +0530 Subject: Tests: Change rebalance status verification According to the comment at the following URL https://bugzilla.redhat.com/show_bug.cgi?id=916226#c2 "success:" can come even before rebalance is completed. Changed it to check for "completed" instead. Change-Id: Ibe9d3b75493240f30261ac2a1280f32ef32886da BUG: 916226 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/4614 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/volume.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 33a38ee7e..5b7a38f77 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -27,7 +27,7 @@ function volume_option() } function rebalance_status_field { - $CLI volume rebalance $1 status | sed -n '$p' | cut -d' ' -f4 + $CLI volume rebalance $1 status | awk '{print $6}' | sed -n 3p } function remove_brick_status_completed_field { -- cgit