fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 489
index 7220e198a574fcaf0496298767dd9cf8c1717698..ec42950c7d8a06728798f75f64c82ed87e09bc26 100755 (executable)
@@ -7,13 +7,10 @@
 # Test that xattrs are not lost after calling fsync multiple times with a
 # filesystem commit in between the fsync calls.
 #
-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 attr log
 
+# Override the default cleanup function.
 _cleanup()
 {
        _cleanup_flakey
@@ -21,8 +18,7 @@ _cleanup()
        rm -f $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/dmflakey
 . ./common/attr
@@ -33,8 +29,6 @@ _require_scratch
 _require_dm_target flakey
 _require_attrs
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
 _init_flakey