fstests: move test group info to test files
[xfstests-dev.git] / tests / overlay / 016
index d3f5babf1c17b225d6073b05206ccee6979365ed..8a091615a9da881f039309588c45ab4f494c2a26 100755 (executable)
 # - process B writes new data to file F
 # - process A reads old data from file F
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick copyup
 
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
-       cd /
-       rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -34,8 +22,6 @@ _supported_fs overlay
 _require_scratch
 _require_xfs_io_command "open"
 
-rm -f $seqres.full
-
 _scratch_mkfs >>$seqres.full 2>&1
 
 # Create our test files.
@@ -45,7 +31,6 @@ echo "This is old news" > $lowerdir/foo
 
 _scratch_mount
 
-
 #
 # open file for read (rofd)
 # open file for write (rwfd)