run-tests.sh: use python setup.py test so that pytest is bootstrapped automatically with tests_require

This commit is contained in:
Cosimo Lupo 2016-09-27 13:30:04 +01:00
parent 1422170d22
commit 83f79bc2f4

View File

@ -22,7 +22,7 @@ done
# Run tests
if [ -z "$FILTERS" ]; then
$PYTHON -m pytest
$PYTHON setup.py test
else
$PYTHON -m pytest -k "$FILTERS"
$PYTHON setup.py test --addopts="-k \"$FILTERS\""
fi