fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 068
index 573fbd4577b6c537272d9df8f735244d756b6084..56262cd7a646168632c83ce0f1e4ccd08b52ee91 100755 (executable)
@@ -7,16 +7,14 @@
 # Test case to reproduce xfs_freeze hang under filsystem load.
 # The fail case for this test is a hang on an xfs_freeze.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest other auto freeze stress
 
-here=`pwd`
-tmp=/tmp/$$
 status=0       # success is the default!
 
 ITERATIONS=10
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
@@ -24,10 +22,7 @@ _cleanup()
     trap 0 1 2 3 15
 }
 
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -38,7 +33,6 @@ _require_freeze
 
 echo "*** init FS"
 
-rm -f $seqres.full
 _scratch_unmount >/dev/null 2>&1
 echo "*** MKFS ***"                         >>$seqres.full
 echo ""                                     >>$seqres.full