fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 105
index 96f11e4c89f488af58191184c2c13be860edb778..b6cc23b928f28ec04c32e365eaf2dc9708433bc3 100755 (executable)
@@ -9,14 +9,10 @@
 # gets replaced in the send snapshot by another one at the same exact location,
 # with the same name and with the same inode number.
 #
-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 send
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -24,8 +20,7 @@ _cleanup()
        rm -f $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -34,7 +29,6 @@ _require_scratch
 
 send_files_dir=$TEST_DIR/btrfs-test-$seq
 
-rm -f $seqres.full
 rm -fr $send_files_dir
 mkdir $send_files_dir