Commit f2abf2ba authored by Laurent Bachelier's avatar Laurent Bachelier

Prefer nosetests2 over nosetests

For weird distributions like Arch Linux;
ported from weboob run_tests.sh.
parent 1afbc4fa
#!/bin/sh -xe #!/bin/sh -xe
if [ -z "${NOSE}" ]; then
which nosetests >/dev/null 2>&1 && NOSE=$(which nosetests)
which nosetests2 >/dev/null 2>&1 && NOSE=$(which nosetests2)
fi
if [ "$1" == '--slow' ]; then if [ "$1" == '--slow' ]; then
ASS2M_FAST_TEST=0 ASS2M_FAST_TEST=0
shift shift
...@@ -9,7 +14,7 @@ fi ...@@ -9,7 +14,7 @@ fi
export ASS2M_FAST_TEST export ASS2M_FAST_TEST
if [ "$1" != "" ]; then if [ "$1" != "" ]; then
nosetests -sv $(dirname $0)/../tests/$1_test.py ${NOSE} -sv $(dirname $0)/../tests/$1_test.py
else else
nosetests --all-modules -sv $(dirname $0)/../tests ${NOSE} --all-modules -sv $(dirname $0)/../tests
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment