fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 166
index b7e5aa0fb70fbb2261b470da3a9829f408040d34..0eb2ec9c3a73af8ae1b50d8028f8287d43ca034b 100755 (executable)
@@ -7,15 +7,12 @@
 # Test for races or FS corruption when DIO writing to a file that's also
 # the source of a reflink operation.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto clone
 
-here=`pwd`
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 7 15
+_register_cleanup "_cleanup" BUS
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
@@ -23,8 +20,7 @@ _cleanup()
     wait
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink