aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")