summaryrefslogtreecommitdiffstats
path: root/test/setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/setup.sh')
-rw-r--r--test/setup.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/setup.sh b/test/setup.sh
index cad5cd66..4a6eb3b1 100644
--- a/test/setup.sh
+++ b/test/setup.sh
@@ -1,7 +1,6 @@
-TEST_DIRECTORY="$(pwd)"
-TOPLEVEL="$(cd .. && pwd)"
+TOPLEVEL="$(cd "$(dirname "$0")/.." && pwd)"
-. ./sharness.sh
+. "$TOPLEVEL/test/sharness.sh"
# Configure python search path.
PYTHONPATH="$TOPLEVEL"