From e504e024d35fea46936dbebbe235a5090517af2d Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 13 Dec 2012 14:56:52 +0530 Subject: Tests: Added util function for option help presence Change-Id: Iec9816af11d5ecb743adecdf335e97267994f758 BUG: 884328 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/4305 Reviewed-by: Kaushal M Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/volume.rc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/volume.rc b/tests/volume.rc index 32665467..0f31beb4 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 +} -- cgit