summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 384368b13..b9d0ddf54 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -249,6 +249,11 @@ function ts_init_py {
export LD_LIBRARY_PATH="$TS_TOPDIR/../.libs"
export PYTHONPATH="$TS_TOPDIR/../$LIBNAME/python:$TS_TOPDIR/../.libs"
+
+ export PYTHON_VERSION=$(awk '/^PYTHON_VERSION/ { print $3 }' $top_builddir/Makefile)
+ export PYTHON_MAJOR_VERSION=$(echo $PYTHON_VERSION | sed 's/\..*//')
+
+ export PYTHON="python${PYTHON_MAJOR_VERSION}"
}
function ts_valgrind {