fstests: move test group info to test files
[xfstests-dev.git] / tests / ext4 / 006
index 29c474b977f67b56f9ac3f8b6069f35f0a0e87ec..17e77f869d5081e4693ddf06d23c097f49510d57 100755 (executable)
@@ -8,23 +8,17 @@
 # the kernel reacts, how e2fsck fares in fixing the mess, and then
 # try more kernel accesses to see if it really fixed things.
 #
-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 15
+. ./common/preamble
+_begin_fstest dangerous_fuzzers
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
     #rm -f $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/attr
 . ./common/populate
@@ -74,7 +68,6 @@ repair_scratch() {
        return 1
 }
 
-rm -f $seqres.full
 echo "See interesting results in $seqres.full" | sed -e "s,$RESULT_DIR,RESULT_DIR,g"
 SRCDIR=`pwd`
 test -z "${FUZZ_ARGS}" && FUZZ_ARGS="-b 32 -v"