summaryrefslogtreecommitdiffstats
path: root/tests/cluster.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cluster.rc')
-rwxr-xr-xtests/cluster.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc
index 1e42426..3b10d19 100755
--- a/tests/cluster.rc
+++ b/tests/cluster.rc
@@ -104,5 +104,9 @@ function define_clis() {
eval "CLI_$i='$CLI --glusterd-sock=${!b}/glusterd/gd.sock'";
eval "CLI$i='$CLI --glusterd-sock=${!b}/glusterd/gd.sock'";
done
+ CLI="$CLI_1"
}
+function peer_count() {
+ $CLI_1 peer status | grep 'Peer in Cluster (Connected)' | wc -l
+}