From 7ed2ddd37ed29f800567f0cb23c8cd2eea35fdbe Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 3 Mar 2011 08:41:07 +0000 Subject: changes for dvm specific testcases Signed-off-by: Vijay Bellur --- init | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) (limited to 'init') diff --git a/init b/init index b762fb8..082ee75 100644 --- a/init +++ b/init @@ -17,50 +17,41 @@ # . # set -u -DESC=0 -BUGID=$(pwd | xargs dirname | xargs basename) +# #BUGID=$(pwd | xargs dirname | xargs basename) + +# BUGID=$( | xargs dirname | xargs basename) function ok () { - desc=$@ - if [ $DESC -ne "0" ] - then - echo "$BUGID: ok - $desc" - else - echo "$BUGID: ok" - fi + echo "ok" + } function not_ok () { - desc=$@ - if [ $DESC -ne "0" ] - then - echo "$BUGID: not ok - $desc" - else - echo "$BUGID: not ok" - fi + echo "not ok" + } -[ $# -ne 1 ] && { - not_ok "#" +[ $# -lt 1 ] && { + not_ok "#" exit } -GLUSTERFS=$1 +GLUSTERD=$1 -VERSION_STR=`$GLUSTERFS --version` +VERSION_STR=`$GLUSTERD --version` VERSION=`echo $VERSION_STR|cut -d " " -f 2` if [ "$VERSION" == "" ] then -echo "Unable to determine version of $GLUSTERFS" +echo "Unable to determine version of $GLUSTERD" exit fi STARTDIR=$(pwd) LOGDIR=$PWD/logs/$VERSION -GLUSTERFSDIR=`dirname $GLUSTERFS` +GLUSTERFSDIR=`dirname $GLUSTERD` SPECDIR=$PWD/spec_files MOUNTDIR=$PWD/mnt EXPORTDIR=$PWD/export -- cgit