fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 629
index 13d433a4e4703761ceaee02713b0bb22eda08c48..abfa90abc3104e89239314a40177b0a8e551113a 100755 (executable)
 # remounting to check file contents.  This is a regression test for commit
 # 5ffce3cc22a0 ("xfs: force the log after remapping a synchronous-writes file")
 
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-status=1    # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick rw copy_range
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -27,8 +22,7 @@ _cleanup()
        _dmerror_cleanup
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 . ./common/dmerror
 
@@ -39,8 +33,6 @@ _require_xfs_io_command "chattr" "s"
 _require_xfs_io_command "copy_range"
 _require_scratch
 
-rm -f $seqres.full
-
 # Format filesystem and set up quota limits
 _scratch_mkfs > $seqres.full
 _require_metadata_journaling $SCRATCH_DEV