fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 171
index 313cd083fdb9ef21144c2ae4dc5cdb17b96887a2..fb2a6f14523cc15fb89d71c3078ceefaae5c2015 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 the page cache.
 #
-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
@@ -33,8 +27,6 @@ _cleanup()
 _require_scratch_reflink
 _require_cp_reflink
 
-rm -f $seqres.full
-
 echo "Format and mount"
 _scratch_mkfs > $seqres.full 2>&1
 _scratch_mount >> $seqres.full 2>&1