fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 055
index e3355da30f7388f0fd7002651d1c697fd87b7f69..e538636d933fae95e7c763d9d8a137662180ca70 100755 (executable)
 #
 #    Btrfs: fix clone to deal with holes when NO_HOLES feature is enabled
 #
-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 clone
 
+# Override the default cleanup function.
 _cleanup()
 {
     rm -fr $tmp
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -36,8 +31,6 @@ _require_cloner
 _require_btrfs_fs_feature "no_holes"
 _require_btrfs_mkfs_feature "no-holes"
 
-rm -f $seqres.full
-
 test_btrfs_clone_with_holes()
 {
        _scratch_mkfs "$1" >/dev/null 2>&1