summaryrefslogtreecommitdiff
path: root/tests/btrfs/169
diff options
context:
space:
mode:
Diffstat (limited to 'tests/btrfs/169')
-rwxr-xr-xtests/btrfs/16913
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/btrfs/169 b/tests/btrfs/169
index 1a9bbe33..a3f823fe 100755
--- a/tests/btrfs/169
+++ b/tests/btrfs/169
@@ -8,13 +8,10 @@
# that has a prealloc (unwritten) extent beyond its EOF gets a hole punched
# in a section of that prealloc extent.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-tmp=/tmp/$$
-status=1 # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
+. ./common/preamble
+_begin_fstest auto quick send
+# Override the default cleanup function.
_cleanup()
{
cd /
@@ -22,8 +19,7 @@ _cleanup()
rm -fr $send_files_dir
}
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
# real QA test starts here
@@ -35,7 +31,6 @@ _require_xfs_io_command "falloc" "-k"
send_files_dir=$TEST_DIR/btrfs-test-$seq
-rm -f $seqres.full
rm -fr $send_files_dir
mkdir $send_files_dir