fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 162
index c7c72d131637146303d4a0a7d73bed44d36e792d..16922ff62a28ff8cc8cd2b63c7d19afa93e64565 100755 (executable)
@@ -7,23 +7,12 @@
 # Make sure that attrs are handled properly when repair has to reset the root
 # directory.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick attr repair
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 7 15
+_register_cleanup "_cleanup" BUS
 
-_cleanup()
-{
-       cd /
-       rm -rf $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/populate
 . ./common/fuzzy
@@ -34,8 +23,6 @@ _require_scratch_nocheck
 _require_populate_commands
 _require_xfs_db_command "fuzz"
 
-rm -f $seqres.full
-
 echo "Format and populate btree attr root dir"
 _scratch_mkfs > "$seqres.full" 2>&1
 _scratch_mount