fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 318
index 07b4f7f130fc8d88926be1495e4c7f32e9c6a577..d822e89a6dfe71dd9b2c732881f8f574f728fff4 100755 (executable)
@@ -6,15 +6,10 @@
 #
 # Simulate free extent errors with a file write and a file remove.
 #
-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
+. ./common/preamble
+_begin_fstest auto quick rw
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -22,8 +17,7 @@ _cleanup()
        rm -rf $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/inject
 
@@ -33,8 +27,6 @@ _require_scratch
 _require_error_injection
 _require_xfs_io_error_injection "rmap_finish_one"
 
-rm -f $seqres.full
-
 blksz=65536
 blks=64
 sz=$((blksz * blks))