diff options
-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") |