fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 512
index 5125b488f81c689fe61eed8f396cb80a6348e1cc..ec367405fe36410925b37c5bb67afbd0f6e8c302 100755 (executable)
@@ -9,13 +9,10 @@
 # file's current size, fsync the file and then power fail, after mounting the
 # filesystem all the file data is there and the file size is correct.
 #
-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 log prealloc
 
+# 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/dmflakey
 
@@ -34,8 +30,6 @@ _require_scratch
 _require_xfs_io_command "falloc"
 _require_dm_target flakey
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
 _init_flakey