fstests: move test group info to test files
[xfstests-dev.git] / tests / generic / 050
index c1a03439d2468bc5ea3559d4108284f2b6f54e05..0664f8c0e4f51d509035dc9f183b1c7d4053f106 100755 (executable)
@@ -7,23 +7,17 @@
 # Check out various mount/remount/unmount scenarious on a read-only blockdev.
 #
 seqfull=$0
-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 shutdown mount auto quick
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
        blockdev --setrw $SCRATCH_DEV
 }
-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
@@ -120,5 +114,4 @@ _try_scratch_mount -o ro 2>&1 | _filter_scratch
 
 # success, all done
 echo "*** done"
-rm -f $seqres.full
 status=0