fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 486
index 3ee7ecd118dbb34de2a00801191d56b8b789ec1b..7de198f93a7174abfe8c58350c3c3915ab4900c4 100755 (executable)
 # Commit 7b38460dc8e4 ("xfs: don't fail when converting shortform attr to long
 # form during ATTR_REPLACE") fixed the xfs bug.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick attr
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
        rm -f $testfile
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/attr
 
-# remove previous $seqres.full before test
-rm -f $seqres.full
-
 # real QA test starts here
 _supported_fs generic
 _require_test_program "attr_replace_test"
 _require_attrs
 _require_scratch
 
-rm -f $seqres.full
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount >>$seqres.full 2>&1