diff options
author | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-04-13 09:29:31 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <valhalla@trueelena.org> | 2022-04-13 09:30:17 +0200 |
commit | 9cbe19d3dad54947e9edddd037ca51fdbbbe70d4 (patch) | |
tree | dc6e9dfa19bf4b864b21d32f4141d6203a8bef9d /check | |
parent | 42d85fbff6d1a7673996e4715a486e0057873595 (diff) |
Look for the nose2 executable in different positions
Diffstat (limited to 'check')
-rwxr-xr-x | check | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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") |