summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 85f0e0fac..31ad481f4 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -316,10 +316,10 @@ function ts_init_suid {
function ts_init_py {
LIBNAME="$1"
- [ -f "$TS_TOPDIR/../py${LIBNAME}.la" ] || ts_skip "py${LIBNAME} not compiled"
+ [ -f "$top_builddir/py${LIBNAME}.la" ] || ts_skip "py${LIBNAME} not compiled"
- export LD_LIBRARY_PATH="$TS_TOPDIR/../.libs"
- export PYTHONPATH="$TS_TOPDIR/../$LIBNAME/python:$TS_TOPDIR/../.libs"
+ export LD_LIBRARY_PATH="$top_builddir/.libs"
+ export PYTHONPATH="$top_builddir/$LIBNAME/python:$top_builddir/.libs"
export PYTHON_VERSION=$(awk '/^PYTHON_VERSION/ { print $3 }' $top_builddir/Makefile)
export PYTHON_MAJOR_VERSION=$(echo $PYTHON_VERSION | sed 's/\..*//')