fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 020
index 769e17764d7de5607651e9c60cb0b85246f9a449..ac876ea3428fd77c93fdf513291d6d810ffcbf03 100755 (executable)
@@ -9,15 +9,10 @@
 # Regression test for commit:
 # bbb651e Btrfs: don't allow the replace procedure on read only filesystems
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-
-status=1       # failure is the default!
+. ./common/preamble
+_begin_fstest auto quick replace volume
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -30,10 +25,7 @@ _cleanup()
        rm -f $fs_img1 $fs_img2 $fs_img3
 }
 
-trap "_cleanup ; exit \$status" 0 1 2 3 15
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -41,7 +33,6 @@ _supported_fs btrfs
 _require_test
 _require_loop
 
-rm -f $seqres.full
 echo "Silence is golden"
 
 loop_mnt=$TEST_DIR/$seq.$$.mnt