fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 291
index c906f248a99337cbe92b87ab4db6f7c1302cceac..bbc6f2b92ceac3638248debf678c07ba6a092558 100755 (executable)
@@ -6,29 +6,15 @@
 #
 # Test xfs_repair on fragmented multi-block dir2 fs
 #
-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 -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+. ./common/preamble
+_begin_fstest auto repair
+
+# Import common functions.
 . ./common/filter
 
 _supported_fs xfs
 
 # real QA test starts here
-rm -f $seqres.full
 _require_scratch
 logblks=$(_scratch_find_xfs_min_logblocks -n size=16k -d size=133m)
 _scratch_mkfs_xfs -n size=16k -l size=${logblks}b -d size=133m >> $seqres.full 2>&1