summaryrefslogtreecommitdiffstats
path: root/tests/cluster.rc
diff options
context:
space:
mode:
authorVijaikumar M <vmallika@redhat.com>2014-01-27 14:05:20 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-02-04 22:57:45 -0800
commit0e32b7304dac960a09b7d425260172a47f4c762e (patch)
tree8efa6e2e3fd6444098f4f0bf0e004c0b53d46af0 /tests/cluster.rc
parentd382c7a7fdf92047655aa54e07a42d346d1d422a (diff)
snapshot: Framework for testing snapshot
This framework can be used to write functional testcase for snapshot operations Change-Id: I850d0e5021ac6c053d89c58567648e1bff273b19 Signed-off-by: Vijaikumar M <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/6798 Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
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 1e42426f6..3b10d19f7 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
+}