fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 009
index 964c8324d936c132afc32ef31ab6befb1ab11420..be7e2f02fd980e81a06d7906b7c6ce601257867f 100755 (executable)
@@ -6,32 +6,16 @@
 #
 # Regression test to make sure we can't delete the default subvol
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick subvol
 
-here=`pwd`
-tmp=/tmp/$$
-
-status=1       # failure is the default!
-
-_cleanup()
-{
-       rm -f $tmp.*
-}
-
-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
 _supported_fs btrfs
 _require_scratch
 
-rm -f $seqres.full
-
 _scratch_mkfs > /dev/null 2>&1
 _scratch_mount