fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 274
index 451d8197d60e5756b540d1fb6f60160f754226ce..43fc2d3e325aaedba9dc48f14e22d5a6d1efafd1 100755 (executable)
 #
 #creator
 
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto rw prealloc enospc
 
-here=`pwd`
-tmp=/tmp/$$
 status=0    # success is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -26,7 +23,6 @@ _cleanup()
        _scratch_unmount
 }
 
-. ./common/rc
 . ./common/filter
 
 # real QA test starts here
@@ -38,8 +34,6 @@ echo "------------------------------"
 echo "preallocation test"
 echo "------------------------------"
 
-rm -f $seqres.full
-
 _scratch_unmount 2>/dev/null
 _scratch_mkfs_sized $((2 * 1024 * 1024 * 1024)) >>$seqres.full 2>&1
 _scratch_mount