diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2018-08-08 10:30:31 +0530 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2018-08-13 13:43:51 +0000 |
commit | 885c56b6f3c43cea0b27345f47f5522b42ebf278 (patch) | |
tree | 16d22fc839b7b82da1caeafaa352c264d5a0f5a9 /tests/cluster.rc | |
parent | 68be932b53daa27be7504bc49ac4c8ba33b5a733 (diff) |
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 <amukherj@redhat.com>
Diffstat (limited to 'tests/cluster.rc')
-rw-r--r-- | tests/cluster.rc | 10 |
1 files changed, 5 insertions, 5 deletions
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/.*<status>\([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/.*<status>\([01]\)<\/status>/\1/p' } |