fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 115
index 02ae4e1deda39396a2fc4423d755bf50d0e8d2e4..715f10b21d1a2096e5bd809fdcbdfb271ec4412c 100755 (executable)
@@ -7,28 +7,12 @@
 # btrfs quota scan/disable sanity test
 # Make sure that disabling quotas during a quota rescan doesn't crash
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto qgroup
 
-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
 
-# remove previous $seqres.full before test
-rm -f $seqres.full
-
 # real QA test starts here
 _supported_fs btrfs
 _require_scratch
@@ -43,7 +27,6 @@ echo 3 > /proc/sys/vm/drop_caches
 $BTRFS_UTIL_PROG quota enable $SCRATCH_MNT
 $BTRFS_UTIL_PROG quota disable $SCRATCH_MNT
 
-
 echo "Silence is golden"
 status=0
 exit