summaryrefslogtreecommitdiff
path: root/tests/misc-tests/003-zero-log/test.sh
diff options
context:
space:
mode:
authorGu Jinxiang <gujx@cn.fujitsu.com>2018-02-08 14:34:19 +0800
committerDavid Sterba <dsterba@suse.com>2018-02-13 15:41:32 +0100
commitcebf3b37228cbde730a5448ad2dfb044600d5e03 (patch)
treeecc36b048a74d11374ac00bb6e9ab5ab2a166b0f /tests/misc-tests/003-zero-log/test.sh
parent04cd2c0bcac7129026c80661933b4ab97d4ab9ca (diff)
btrfs-progs: introduce TEST_TOP and INTERNAL_BIN for tests
Use TEST_TOP as base for tests to reference any files, this will be used for git and external testsuite. INTERNAL_BIN is needed for referencing binaries that could reside in different paths in git vs external testsuite. Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com> [ add quotes around sourced files, update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/misc-tests/003-zero-log/test.sh')
-rwxr-xr-xtests/misc-tests/003-zero-log/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc-tests/003-zero-log/test.sh b/tests/misc-tests/003-zero-log/test.sh
index e7c5c806..9d2940f5 100755
--- a/tests/misc-tests/003-zero-log/test.sh
+++ b/tests/misc-tests/003-zero-log/test.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# test zero-log
-source $TOP/tests/common
+source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfs
@@ -27,7 +27,7 @@ test_zero_log()
{
# FIXME: we need an image with existing log_root
run_check $SUDO_HELPER $TOP/mkfs.btrfs -f \
- --rootdir $TOP/Documentation \
+ --rootdir $INTERNAL_BIN/Documentation \
$TEST_DEV
run_check $TOP/btrfs inspect-internal dump-super $TEST_DEV
if [ "$1" = 'standalone' ]; then