diff options
author | Vijay Bellur <vijay@gluster.com> | 2009-11-01 23:30:41 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2009-11-01 23:30:41 +0530 |
commit | 37dffe74f0b979225357052c3c56a11d69916006 (patch) | |
tree | 39789c53ce8b02ff252aa3ecc470e7839f85c0e3 | |
parent | 7b2ba6ea3fdfcb7e9182c3f5b05659e160d1d223 (diff) |
Changes for new regression test-case format.
-rwxr-xr-x | 313/regr/testcase | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/313/regr/testcase b/313/regr/testcase index 96ec531..8564c7e 100755 --- a/313/regr/testcase +++ b/313/regr/testcase @@ -3,39 +3,13 @@ description="# (313) rename is broken" comments="#when try to rename a file using mv it fails" -version=$1 -bugid=$(pwd | cut -d '/' -f 4) - -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 "#<Usage: $(basename $0) <glusterfs_version>" - exit -} - -/opt/qa/regr/setup $version $bugid +source ../../init +start_glusterfs sleep 10; -touch $mountdir/client1/tmp1.txt -mv $mountdir/client1/tmp1.txt $mountdir/client1/tmp2.txt 2> tmpfile +touch $MOUNTDIR/client1/tmp1.txt +mv $MOUNTDIR/client1/tmp1.txt $MOUNTDIR/client1/tmp2.txt 2> tmpfile if [ $(grep "Structure needs cleaning" tmpfile | wc -l) -ne 0 ];then not_ok $description @@ -45,4 +19,4 @@ else fi rm tmpfile -/opt/qa/regr/cleanup $version $bugid +cleanup_glusterfs |