fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 226
index c523cf4a781872c8e23096e5cddde91e98212690..7034fcc7b2a57e9c298b003c22f9f854fbc8d6b0 100755 (executable)
@@ -7,22 +7,10 @@
 # Test several (btrfs specific) scenarios with RWF_NOWAIT writes, cases where
 # they should fail and cases where they should succeed.
 #
-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
-
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+. ./common/preamble
+_begin_fstest auto quick rw snapshot clone prealloc punch
+
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -35,8 +23,6 @@ _require_xfs_io_command pwrite -N
 _require_xfs_io_command falloc -k
 _require_xfs_io_command fpunch
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount