fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 163
index 5e3fe9dba4a883ad90eaea6b14739871977ce4bc..4a6c341e0b38d06581939247b364c48a921e4df2 100755 (executable)
@@ -6,15 +6,12 @@
 #
 # Test for race between dedupe and writing the source file
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick clone dedupe
 
-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 /
@@ -22,8 +19,7 @@ _cleanup()
     wait
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/reflink