fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 012
index 0feca7d9b1b592323e78b4a9d35340a390f1483a..46341e984821437be516b502d9bc6d69d9dafb31 100755 (executable)
 # 5) roll back conversion to original ext4
 # 6) verify rolled-back fs integrity & contents
 #
-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
-
-_cleanup()
-{
-    cd /
-    rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+. ./common/preamble
+_begin_fstest auto convert
+
+# Import common functions.
 . ./common/filter.btrfs
 
 # real QA test starts here
@@ -44,8 +31,6 @@ _require_command "$E2FSCK_PROG" e2fsck
 
 _require_fs_space $SCRATCH_MNT $(du -s /lib/modules/`uname -r` | ${AWK_PROG} '{print $1}')
 
-rm -f $seqres.full
-
 BLOCK_SIZE=`_get_block_size $TEST_DIR`
 
 # Create & populate an ext4 filesystem