fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 049
index 16bc788db70c99c61fac8b3b826cf0de674c3abe..69656a85cba5ba27dc121bd68b23937a75467fe9 100755 (executable)
@@ -6,10 +6,10 @@
 #
 # XFS on loop test
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest rw auto quick
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
@@ -24,13 +24,7 @@ _cleanup()
     fi
 }
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup ; exit \$status" 0 1 2 3 15
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -48,8 +42,6 @@ _require_no_large_scratch_dev
 _require_loop
 _require_extra_fs ext2
 
-rm -f $seqres.full
-
 echo "(dev=$SCRATCH_DEV, mount=$SCRATCH_MNT)" >> $seqres.full
 echo "" >> $seqres.full