fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 233
index 10e77358543b61a18251f6bbed1e72a632132b2e..f3e3762c69512d77451f0e36b1e2d76e6ca558a7 100755 (executable)
@@ -8,13 +8,10 @@
 # on RO mounts and that after remounting a filesystem from RO to RW mode, it is
 # performed.
 #
-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 subvolume
 
+# Override the default cleanup function.
 _cleanup()
 {
        _cleanup_flakey
@@ -22,8 +19,7 @@ _cleanup()
        rm -f $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/dmflakey
 
@@ -33,8 +29,6 @@ _require_scratch
 _require_dm_target flakey
 _require_btrfs_command inspect-internal dump-tree
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _require_metadata_journaling $SCRATCH_DEV
 _init_flakey