From ea4b68fce207db5fe9f08fd6f533c02b2c726c55 Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Sun, 1 Nov 2009 23:29:34 +0530 Subject: Changes for new regression test-case format. --- 131/regr/testcase | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/131/regr/testcase b/131/regr/testcase index 1726bbb..50804db 100755 --- a/131/regr/testcase +++ b/131/regr/testcase @@ -3,42 +3,16 @@ description="# (131) provide a way to get the file location in clustered storage" comments="#doesn't have a mechanism to get the location of the file" -version=$1 -bugid=$(pwd | cut -d '/' -f 4) +source ../../init -exportdir=/jbod/regr/$bugid -mountdir=/mnt/regr/$bugid/$version - -function ok () { - desc=$@ - echo "ok - $desc" -} - -function not_ok () { - desc=$@ - echo "not ok - $desc" -} - - -function comment () { - desc=$@ - echo "$desc" -} - -[ $# -ne 1 ] && { - not_ok "#" - exit -} - - -/opt/qa/regr/setup $version $bugid +start_glusterfs sleep 5 -if [ $(getfattr -d -e hex -m "trusted.glusterfs.location" $mountdir/client1 2> /dev/null | wc -l) -ne 0 ];then +if [ $(getfattr -d -e hex -m "trusted.glusterfs.location" $MOUNTDIR/client1 2> /dev/null | wc -l) -ne 0 ];then ok $description else not_ok $desrciption comment $comments fi -/opt/qa/regr/cleanup $version $bugid +cleanup_glusterfs -- cgit