summaryrefslogtreecommitdiffstats
path: root/tests/volume.rc
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2012-12-13 14:56:52 +0530
committerAnand Avati <avati@redhat.com>2012-12-13 14:02:15 -0800
commite504e024d35fea46936dbebbe235a5090517af2d (patch)
tree219a1c6af139d1ffa0562900a53f6455e74ac5e4 /tests/volume.rc
parent6dd85beaf95eee881a6c244c41e5fd5db17cdf9e (diff)
Tests: Added util function for option help presence
Change-Id: Iec9816af11d5ecb743adecdf335e97267994f758 BUG: 884328 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/4305 Reviewed-by: Kaushal M <kaushal@redhat.com> 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.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/volume.rc b/tests/volume.rc
index 32665467129..0f31beb4802 100644
--- a/tests/volume.rc
+++ b/tests/volume.rc
@@ -69,3 +69,8 @@ function kill_brick()
brick_hiphenated=$(echo $brick | tr '/' '-')
kill -9 `cat /var/lib/glusterd/vols/$vol/run/${host}${brick_hiphenated}.pid`
}
+
+function check_option_help_presence {
+ option=$1
+ $CLI volume set help | grep "^Option:" | grep -w $option
+}