fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 480
index 86afee678d6fbe553781a6190f3f02cf03595dee..2805a3ac11f29fd0c33ec7a4deea50c44606ffa1 100755 (executable)
@@ -9,13 +9,10 @@
 # with the name of the link removed, fsync the new file and have a power loss,
 # mounting the filesystem succeeds.
 #
-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 metadata 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/dmflakey
 
@@ -34,8 +30,6 @@ _require_scratch
 _require_hardlinks
 _require_dm_target flakey
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
 _init_flakey