fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 174
index 00581473a3ef877d8bf530c002e1245f047c4564..1505453e1581cba9daf3a3188fb1d06de7b27bf1 100755 (executable)
@@ -7,23 +7,17 @@
 # Reflink a file, use up the rest of the space, then try to observe ENOSPC
 # while copy-on-writing the file via direct-io.
 #
-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 clone
 
+# Override the default cleanup function.
 _cleanup()
 {
     cd /
     rm -rf $tmp.* $testdir1
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/populate
 . ./common/filter
 . ./common/attr
@@ -34,8 +28,6 @@ _require_scratch_reflink
 _require_cp_reflink
 _require_odirect
 
-rm -f $seqres.full
-
 echo "Format and mount"
 _scratch_mkfs > $seqres.full 2>&1
 _scratch_mount >> $seqres.full 2>&1