summaryrefslogtreecommitdiffstats
path: root/dvm/3543
diff options
context:
space:
mode:
authorVijaykumar <vkoppad@redhat.com>2011-12-29 13:38:53 +0530
committerVijaykumar <vkoppad@redhat.com>2012-01-03 12:24:14 +0530
commit6b24e7071e764a2032288578bcebeb90cdea5412 (patch)
tree441eff13871b65f3db9f2776305766b0224b0640 /dvm/3543
parentf725320ff7b98d92d6a8bab904bf784eb4542ad3 (diff)
(BUG-3543) Checks for gluster volume set help
Change-Id: If72ee8c431d51c86f6678f00a6c6cfb19e98924a BUG: 3543 Signed-off-by: Vijaykumar <vkoppad@redhat.com>
Diffstat (limited to 'dvm/3543')
-rwxr-xr-xdvm/3543/testcase28
1 files changed, 28 insertions, 0 deletions
diff --git a/dvm/3543/testcase b/dvm/3543/testcase
new file mode 100755
index 0000000..7eaf202
--- /dev/null
+++ b/dvm/3543/testcase
@@ -0,0 +1,28 @@
+#!/usr/bin/python
+
+import subprocess
+import re
+import sys
+import os
+
+def bug(gdir):
+ cmd = gdir+'/gluster volume set help'
+ cmd_obj= subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
+ ret = cmd_obj.wait()
+ if ret:
+ return 1
+ else:
+ return 0
+
+def main():
+ gdir = os.environ['GLUSTERFSDIR']
+ return_status = bug(gdir)
+ if return_status:
+ #print 'unsuccess'
+ sys.exit(1)
+ else:
+ #print 'success'
+ sys.exit(0)
+
+if __name__ == '__main__':
+ main()