fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 117
index 0d3ab3cd35bc25e0cf9b9e72a9dce41a038f7770..6539827b5a40b7aeec578bfc5492dd4ded940622 100755 (executable)
@@ -8,22 +8,12 @@
 # for files that have a full path containing more than one parent directory
 # component.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick send clone
 
 tmp=`mktemp -d`
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
 
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink
 
@@ -32,8 +22,6 @@ _supported_fs btrfs
 _require_scratch
 _require_cp_reflink
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 _scratch_mount