fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 349
index 51deb40dae766deb802b63af0488d06787540cdb..da331b95f2f205c6d31cedd4e20df1868b859acf 100755 (executable)
@@ -7,23 +7,12 @@
 # Test fallocate(ZERO_RANGE) on a block device, which should be able to
 # WRITE SAME (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 zero
+
+_register_cleanup "_cleanup" BUS
+
+# Import common functions.
 . ./common/filter
 . ./common/scsi_debug