fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 066
index cd9aad9c7c98ab5ede997ddb534ea9a87ccbb86d..8d12af616d89a11b6cd12e8f0f1e196af31d3f32 100755 (executable)
@@ -7,23 +7,10 @@
 # Run btrfs subvolume create/mount/umount/delete and btrfs scrub
 # operation simultaneously, with fsstress running in background.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto subvol scrub
 
-here=`pwd`
-tmp=/tmp/$$
-status=1
-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
 
 # real QA test starts here
@@ -33,8 +20,6 @@ _require_scratch_nocheck
 _require_scratch_dev_pool 4
 _btrfs_get_profile_configs
 
-rm -f $seqres.full
-
 run_test()
 {
        local mkfs_opts=$1