fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 504
index fcc467e8e732de05edf456633b43fbf678becfe6..038ab0f2c22710d004fbb951ac8a322d3f92912a 100755 (executable)
 # Open new fd by exec shell built-in, then require exclusive lock
 # by flock(1) command. Checking /proc/locks for the lock info.
 #
-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 locks
 
+# Override the default cleanup function.
 _cleanup()
 {
        exec {test_fd}<&-
@@ -26,13 +21,9 @@ _cleanup()
        rm -f $tmp.*
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
-# remove previous $seqres.full before test
-rm -f $seqres.full
-
 # real QA test starts here
 _supported_fs generic
 _require_test