aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-08-04 09:55:09 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-08-04 09:55:09 +0200
commit667d80bf3fd61c40d6d5c430b844c41ddd745a4a (patch)
tree9d8f1f4a10d85a3d71a75357a6053e4d0cc10994
parent1e6ac050f2b2670ab4a94cc7e59bec747e38cc07 (diff)
Allow the python executable used in tests to be changed
-rwxr-xr-xcheck8
1 files changed, 2 insertions, 6 deletions
diff --git a/check b/check
index b5008c9..4961935 100755
--- a/check
+++ b/check
@@ -10,12 +10,8 @@ then
exit 0
fi
-if which nose2-3 > /dev/null
-then
- NOSE2=nose2-3
-else
- NOSE2=nose2
-fi
+PYTHON="${PYTHON:-python3}"
+NOSE2="${NOSE2:-$PYTHON -m nose2}"
export PYTHONDEVMODE=1