summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2013-03-04 16:23:46 +0530
committerAnand Avati <avati@redhat.com>2013-04-02 19:05:36 -0700
commitb38d98e706724eb80a822f82c3c265d3ea41ff54 (patch)
treeb338a6f9871902183cabef1c3d3287a2aea6e822 /tests/volume.rc
parent6b393b3ab6799ede09f6d2b303e35b8bc505f465 (diff)
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 <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/4614 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/volume.rc')
-rw-r--r--tests/volume.rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 33a38ee7ee6..5b7a38f77e3 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 {