fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 089
index 468d6140bd88bcc7ece02a16ff6093b0045f84f3..e0b61e8ef72f7a03ed3ae9db4aa6458bc9b85972 100755 (executable)
@@ -8,23 +8,10 @@
 # not unmounted prematurely. This is a regression test for Linux commit "Btrfs:
 # don't invalidate root dentry when subvolume deletion fails".
 #
-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
-
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+. ./common/preamble
+_begin_fstest auto quick subvol
+
+# Import common functions.
 . ./common/filter
 . ./common/filter.btrfs
 
@@ -34,8 +21,6 @@ _cleanup()
 _supported_fs btrfs
 _require_scratch
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount