From 25f8dda16d737ef90200ae965c877d6a0e3ff2ae Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Mon, 30 Mar 2015 23:09:47 +0100 Subject: [PATCH] Pass the wanted python interpreted when running tests Closes: https://github.com/pmatiello/python-graph/issues/110 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c2299a4..4e480cb 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ TESTS_DIR="tests/" DOCS_DIR="docs/" TEMP="temp/" PYTHONPATH="`pwd`/core:`pwd`/dot" +PYTHON=python +PYTHON3=python3 # General ------------------------------------------------------------ @@ -67,10 +69,10 @@ test-pre: reset test: test-pre - export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python testrunner.py + export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && ${PYTHON} testrunner.py test3: test-pre - export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && python3 testrunner.py + export PYTHONPATH=${PYTHONPATH} && cd ${TESTS_DIR} && ${PYTHON3} testrunner.py tests: test