summaryrefslogtreecommitdiff
path: root/tests/mkfs-tests.sh
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-06-03 16:01:51 +0200
committerDavid Sterba <dsterba@suse.com>2016-06-03 16:53:27 +0200
commite5f80994640df9abdb181c6db1513d8de744c73c (patch)
treeba5db8d8b75559a4d57e51ca661a635006248da4 /tests/mkfs-tests.sh
parentb5ab8d42b71ce06d9fcfbcc0f65f6c388d6b28f1 (diff)
btrfs-progs: tests: unify test drivers
Remove unnecessary code, add exports to all common variables. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/mkfs-tests.sh')
-rwxr-xr-xtests/mkfs-tests.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/mkfs-tests.sh b/tests/mkfs-tests.sh
index 363a865e..1afc0282 100755
--- a/tests/mkfs-tests.sh
+++ b/tests/mkfs-tests.sh
@@ -2,8 +2,6 @@
#
# mkfs.btrfs tests
-unset TOP
-unset LANG
LANG=C
SCRIPT_DIR=$(dirname $(readlink -f $0))
TOP=$(readlink -f $SCRIPT_DIR/../)
@@ -13,13 +11,11 @@ IMAGE="$TOP/tests/test.img"
source $TOP/tests/common
-# Allow child test to use $TOP and $RESULTS
export TOP
export RESULTS
-# For custom script needs to verify recovery
export LANG
-# For tests that only use a loop device
export IMAGE
+export TEST_DEV
rm -f $RESULTS