fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 297
index 4d5cedd2dd1589db1408d7487c8daa59e369cc7f..ca482e064f388899ca25c3d6abb03e9fa7b7e92c 100755 (executable)
@@ -8,23 +8,10 @@
 # Regression test for commit:
 # 437a255 xfs: fix direct IO nested transaction deadlock.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto freeze
 
-here=`pwd`
-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
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -34,7 +21,6 @@ _require_scratch
 _require_freeze
 _require_command "$KILLALL_PROG" killall
 
-rm -f $seqres.full
 logblks=$(_scratch_find_xfs_min_logblocks -d agcount=16,su=256k,sw=12 -l su=256k)
 _scratch_mkfs_xfs -d agcount=16,su=256k,sw=12 -l su=256k,size=${logblks}b >/dev/null 2>&1
 _scratch_mount