From 885c56b6f3c43cea0b27345f47f5522b42ebf278 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Wed, 8 Aug 2018 10:30:31 +0530 Subject: tests: fix brick check orders fix brick checks for validating-server-quorum.t & quorum-validation.t ...and make brick_up_status_1 function more generic. Also fix a timing issue in bug-1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t Change-Id: I797ef4cec5b160aafa979bae7151b1e99fcb48ac Updates: bz#1603063 Signed-off-by: Atin Mukherjee --- tests/cluster.rc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/cluster.rc') diff --git a/tests/cluster.rc b/tests/cluster.rc index 1c5247ca43f..99be8e79c21 100644 --- a/tests/cluster.rc +++ b/tests/cluster.rc @@ -184,10 +184,10 @@ function volinfo_field_2() $CLI_2 volume info $vol | grep "^$field: " | sed 's/.*: //'; } -function brick_up_status_1 { - local vol=$1 - local host=$2 - local brick=$3 - $CLI_1 volume status $vol $host:$brick --xml | sed -ne 's/.*\([01]\)<\/status>/\1/p' +function cluster_brick_up_status { + local vol=$2 + local host=$3 + local brick=$4 + eval \$CLI_$1 volume status $vol $host:$brick --xml | sed -ne 's/.*\([01]\)<\/status>/\1/p' } -- cgit