fstests: move test group info to test files
[xfstests-dev.git] / tests / ext4 / 305
index 13785837d507bccf18fed2faa40b6e3b1f258bd0..2c89a58304e4107911cc6a8230e9aff9491e3f94 100755 (executable)
@@ -7,22 +7,19 @@
 # Regression test for commit:
 # 9559996 ext4: remove mb_groups before tearing down the buddy_cache
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto
 
 PIDS=""
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
     kill $PIDS >/dev/null 2>&1
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -30,7 +27,6 @@ _supported_fs ext4
 
 _require_scratch
 
-rm -f $seqres.full
 echo "Silence is golden"
 
 DEV_BASENAME=$(_short_dev $SCRATCH_DEV)