mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
use nosetests3 if available
This commit is contained in:
parent
14c69c00d9
commit
346faf855a
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue