fstests: move test group info to test files
[xfstests-dev.git] / tests / btrfs / 075
index 24c3c0f26e72085626ba79e2bcb50d9bf84b277c..e10d656215dbc967b720da18e777ddb793fcd2fe 100755 (executable)
@@ -7,15 +7,10 @@
 # If one subvolume was mounted with selinux context, other subvolumes
 # should be able to be mounted with the same selinux context too.
 #
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-status=1
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick subvol
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -23,8 +18,7 @@ _cleanup()
        $UMOUNT_PROG $subvol_mnt >/dev/null 2>&1
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
 
 # real QA test starts here
@@ -36,7 +30,6 @@ if [ "$SELINUX_MOUNT_OPTIONS" == "" ]; then
        _notrun "Require selinux to be enabled"
 fi
 
-rm -f $seqres.full
 echo "Silence is golden"
 
 # first mount default subvolume with selinux context set