aboutsummaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-04-13 09:29:31 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2022-04-13 09:30:17 +0200
commit9cbe19d3dad54947e9edddd037ca51fdbbbe70d4 (patch)
treedc6e9dfa19bf4b864b21d32f4141d6203a8bef9d /check
parent42d85fbff6d1a7673996e4715a486e0057873595 (diff)
Look for the nose2 executable in different positions
Diffstat (limited to 'check')
-rwxr-xr-xcheck11
1 files changed, 9 insertions, 2 deletions
diff --git a/check b/check
index 026c9f7..9f0cb85 100755
--- a/check
+++ b/check
@@ -10,6 +10,13 @@ then
exit 0
fi
+if which nose2-3 > /dev/null
+then
+ NOSE2=nose2-3
+else
+ NOSE2=nose2
+fi
+
export PYTHONDEVMODE=1
SUBCMD=$1
@@ -17,10 +24,10 @@ shift 1
case $SUBCMD in
"tests")
- nose2-3 $COVER_OPT --log-level=ERROR -B --log-capture $*
+ $NOSE2 $COVER_OPT --log-level=ERROR -B --log-capture $*
;;
"coverage")
- nose2-3 --with-coverage --coverage-report=term-missing \
+ $NOSE2 --with-coverage --coverage-report=term-missing \
--log-level=ERROR -B --log-capture $*
;;
"qa")