fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 327
index 7a14798f8dc88bfce1e63e14cc3e05e50facb5ff..25855f77621c527d63d9675d23b576c87b9fe172 100755 (executable)
@@ -9,15 +9,10 @@
 # that (fortunately) triggered asserts in the rmap code when clearing
 # the reflink flag.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-status=1    # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick clone
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -25,8 +20,7 @@ _cleanup()
        rm -rf $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -35,8 +29,6 @@ _supported_fs xfs
 _require_cp_reflink
 _require_scratch_reflink
 
-rm -f $seqres.full
-
 nr=128 # spanning at least one inode chunk tickles a bug in xfs_repair
 echo "Format filesystem"
 _scratch_mkfs >/dev/null 2>&1