fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 307
index c04387aa38af9c7190f06ff60f1a1c805b514588..ba7204dd00062c14bc2d3bd19923b779382c10c9 100755 (executable)
@@ -8,23 +8,10 @@
 # - Use the debugger to fake a leftover CoW extent
 # - See if xfs_repair fixes it
 #
-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
-
-_cleanup()
-{
-       cd /
-       rm -rf $tmp.*
-}
+. ./common/preamble
+_begin_fstest auto quick clone
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -32,8 +19,6 @@ _cleanup()
 _supported_fs xfs
 _require_scratch_reflink
 
-rm -f $seqres.full
-
 echo "Format"
 _scratch_mkfs > $seqres.full 2>&1
 _scratch_mount >> $seqres.full