fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 168
index 1e461c0f672ef49fc1a1f513fc970812915518c6..acc58b51ee39542920a04214b9168e1b425678ae 100755 (executable)
@@ -8,13 +8,10 @@
 # (or subvolume) has a file that is deleted while there is still a open file
 # descriptor for that file.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-tmp=/tmp/$$
-status=1       # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick send
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -22,8 +19,7 @@ _cleanup()
        rm -fr $send_files_dir
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -35,7 +31,6 @@ _require_fssum
 
 send_files_dir=$TEST_DIR/btrfs-test-$seq
 
-rm -f $seqres.full
 rm -fr $send_files_dir
 mkdir $send_files_dir