fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 189
index 9dbd31a64ce7d36392b6a51a45fd7e434e9a42ea..ec6e56fa0020e0116a7adfcb6d27b2a69da5a55b 100755 (executable)
 # commit ac765f83f1397646 ("Btrfs: fix data corruption due to cloning of eof
 # block"), or cause silent data corruption for older kernels.
 #
-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 clone
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -25,8 +22,7 @@ _cleanup()
        rm -fr $send_files_dir
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -38,7 +34,6 @@ _require_scratch_reflink
 
 send_files_dir=$TEST_DIR/btrfs-test-$seq
 
-rm -f $seqres.full
 rm -fr $send_files_dir
 mkdir $send_files_dir