fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 146
index 49020e01cbec7197bc78c04b800a1cebda6a341c..5516d396bf7189e186cbb62f04a92d62b56c00c6 100755 (executable)
 # the end of the rtbitmap file.  When this happens, xfs triggers a verifier
 # error and returns EFSCORRUPTED.
 
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-status=1    # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+. ./common/preamble
+_begin_fstest auto quick rw realtime
+
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -39,8 +26,6 @@ _require_scratch
 _require_realtime
 _require_test_program "punch-alternating"
 
-rm -f $seqres.full
-
 # Format filesystem to get the block size
 _scratch_mkfs > $seqres.full
 _scratch_mount >> $seqres.full