btrfs: source common/module when requiring module reload
[xfstests-dev.git] / tests / btrfs / 225
index b745b536265effc5fdc670ed0fcf58602608cd48..ce1818db773ca425c32c868f5fbaf4a90e7071ad 100755 (executable)
 #  Create a seed FS. Add a RW device to make it sprout FS and then delete
 #  the seed device.
 
-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
+. ./common/preamble
+_begin_fstest auto quick volume seed
 
+# Override the default cleanup function.
 _cleanup()
 {
        cd /
@@ -28,12 +23,9 @@ _cleanup()
        _btrfs_rescan_devices
 }
 
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
 . ./common/filter
-
-# remove previous $seqres.full before test
-rm -f $seqres.full
+. ./common/module
 
 # real QA test starts here