From 8904b7e4958f886afc48108504bd558703930b48 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 6 Sep 2011 19:43:11 +0530 Subject: some changes in the regression framework and testcases for some bugs --- dvm/1535/testcase | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 dvm/1535/testcase (limited to 'dvm/1535/testcase') diff --git a/dvm/1535/testcase b/dvm/1535/testcase new file mode 100755 index 0000000..d799749 --- /dev/null +++ b/dvm/1535/testcase @@ -0,0 +1,16 @@ +#!/bin/bash +source $cwd/regression_helpers + +VOLNAME="vol$global_bug_id"; + +$GLUSTERFSDIR/gluster volume create $VOLNAME $(hostname):$EXPORT_DIR/$global_bug_id/export1 $(hostname):$EXPORT_DIR/$global_bug_id/export2 2>/dev/null 1>/dev/null; + +VOLTYPE=`$GLUSTERFSDIR/gluster volume info $VOLNAME | grep Type | cut -d ' ' -f2` + +if [ "$VOLTYPE" == "Distribute" ]; then + RET="0"; +else + RET="1"; +fi + +exit $RET; -- cgit