From ee62e4a721f6e67aa90ad3ff819fcc326d2f13da Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sun, 1 Nov 2009 23:28:52 +0530 Subject: Changes for new regression testcase template --- 14/regr/testcase | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/14/regr/testcase b/14/regr/testcase index af04e9a..2b9903d 100755 --- a/14/regr/testcase +++ b/14/regr/testcase @@ -3,44 +3,17 @@ description="#[ glusterfs 2.0.2 ] - No error logged on stdout/stderr upon missing mount point during client invocation" comments="#error should be displayed on the sreen" -version=$1 -bugid=$(pwd | cut -d '/' -f 4) -specdir=/share/tickets/$bugid/regr/spec_files -logdir=/share/tickets/$bugid/regr/logs/$version -GLUSTERFS=/opt/glusterfs/$version/sbin +source ../../init -function ok () { - desc=$@ - echo "ok - $desc" -} +start_glusterfs --no-clients -function not_ok () { - desc=$@ - echo "not ok - $desc" -} - - -function comment () { - desc=$@ - echo "$desc" -} - -[ $# -ne 1 ] && { - not_ok "#" - exit -} - -/opt/qa/regr/setup $version $bugid --no-clients - - -x=$($GLUSTERFS/glusterfs --run-id regr.c.$bugid -f $specdir/client1.vol -l $logdir/$(hostname)-client1.log | wc -l) -if [ $x -ne 0 ] +$($GLUSTERFS --run-id regr.c.$BUGID -f $SPECDIR/client1.vol -l $LOGDIR/$(hostname)-client1.log) +if [ $? -ne 0 ] then - echo $x ok $description else not_ok $description comment $comments fi -/opt/qa/regr/cleanup $version $bugid +cleanup_glusterfs -- cgit