From 0d0c6f94e0162c0f7a6603e192e55d004ecd1256 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 4 Oct 2018 17:56:50 +1000 Subject: [PATCH] use nosetests3 if available --- tools/tests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/tests.sh b/tools/tests.sh index 026318ca1..029e420d2 100755 --- a/tools/tests.sh +++ b/tools/tests.sh @@ -8,6 +8,12 @@ BIN="$(cd "`dirname "$0"`"; pwd)" export PYTHONPATH=${BIN}/..:${PYTHONPATH} +# favour nosetests3 if available +nose=nosetests +if which nosetests3 >/dev/null 2>&1; then + nose=nosetests3 +fi + dir=. if [ x$1 = x ]; then @@ -22,4 +28,4 @@ else args="" echo "Call with coverage=1 to run coverage tests" fi -(cd $dir && nosetests -vs --processes=16 --process-timeout=300 $lim $args --cover-package=anki) +(cd $dir && $nose -vs --processes=16 --process-timeout=300 $lim $args --cover-package=anki)