fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 170
index 7ad28b3fcff18613fb5822d5d451be825c601751..15382eb31638d6c0b6105a390b55ad4036d79928 100755 (executable)
@@ -8,21 +8,10 @@
 # more space left to allocate in the filesystem and then snapshot the file's
 # subvolume, after a clean shutdown the data was not lost.
 #
-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
 
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -30,8 +19,6 @@ _supported_fs btrfs
 _require_scratch
 _require_xfs_io_command "falloc" "-k"
 
-rm -f $seqres.full
-
 # Use a fixed size filesystem so that we can precisely fill the data block group
 # mkfs.btrfs creates and allocate all unused space for a new data block group.
 # It's important to not use the mixed block groups feature as well because we