fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 501
index 67b9f8565d8d51f87a0ad89982e1976fdc4eb730..8c3f627b574a22655fa8642d4304d1dd051b40e7 100755 (executable)
@@ -9,13 +9,10 @@
 # the file again and then power fail, after we mount again the filesystem, no
 # file data was lost or corrupted.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick clone log
 
+# Override the default cleanup function.
 _cleanup()
 {
        _cleanup_flakey
@@ -23,8 +20,7 @@ _cleanup()
        rm -f $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 . ./common/dmflakey
@@ -34,8 +30,6 @@ _supported_fs generic
 _require_scratch_reflink
 _require_dm_target flakey
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
 _init_flakey