fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 350
index df57c7ee8bf13ae3a8bf06faf319446134ac9b86..d8b2f272b7e1f7e223408f301c9d32248a872488 100755 (executable)
@@ -7,23 +7,12 @@
 # Test fallocate(PUNCH_HOLE) on a block device, which should be able to
 # zero-TRIM (or equivalent) the range.
 #
-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 7 15
-
-_cleanup()
-{
-    cd /
-    rm -rf $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+. ./common/preamble
+_begin_fstest blockdev rw punch
+
+_register_cleanup "_cleanup" BUS
+
+# Import common functions.
 . ./common/filter
 . ./common/scsi_debug