fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 119
index fd4d744bd873c421310fd424a375f53724e064a7..d1926da99ee3190de6bbb982389f61f87ea1540c 100755 (executable)
@@ -7,13 +7,10 @@
 # Test log tree replay when qgroups are enabled and orphan roots (deleted
 # snapshots) exist.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick snapshot metadata qgroup log
 
+# Override the default cleanup function.
 _cleanup()
 {
        _cleanup_flakey
@@ -21,8 +18,7 @@ _cleanup()
        rm -f $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/dmflakey
 
@@ -31,8 +27,6 @@ _supported_fs btrfs
 _require_scratch
 _require_dm_target flakey
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
 _init_flakey