summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-02-13 16:21:20 +0100
committerDavid Sterba <dsterba@suse.com>2018-02-13 16:22:55 +0100
commitdbb8c9d19e465e09603386c51b2bb32b72a1b009 (patch)
treea107398f4e235b5bc27873dfbd48bcbbceabc948 /tests
parente44f595dd7dd2372954595cb9231c36e04cafc73 (diff)
btrfs-progs: test: update clean-test.sh after the TEST_TOP update
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/clean-tests.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/clean-tests.sh b/tests/clean-tests.sh
index f5f63092..342616f7 100755
--- a/tests/clean-tests.sh
+++ b/tests/clean-tests.sh
@@ -28,7 +28,7 @@ TEST_DEV=${TEST_DEV:-}
RESULTS="$TEST_TOP/cli-tests-results.txt"
IMAGE="$TEST_TOP/test.img"
-source "$TEST_TOP/tests/common"
+source "$TEST_TOP/common"
setup_root_helper
@@ -38,8 +38,8 @@ fi
$SUDO_HELPER umount "$TEST_MNT" &>/dev/null
-if ! cd "$TOP/tests"; then
- echo "ERROR: cannot cd to $TOP/tests"
+if ! cd "$TEST_TOP"; then
+ echo "ERROR: cannot cd to $TEST_TOP"
exit 1
fi