From 9cbe19d3dad54947e9edddd037ca51fdbbbe70d4 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Wed, 13 Apr 2022 09:29:31 +0200 Subject: Look for the nose2 executable in different positions --- check | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'check') 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") -- cgit v1.2.3