| | |
| | | ((TOX_RET == 0)) && ! printf "%s" "$TOX_OUT" | grep -q 'assuming empty tox\.ini' && TEST_STYLE="tox" && break |
| | | |
| | | # Disable some pytest plugins that almost always collects tests to run |
| | | # even there are no pytest tests available otherwise |
| | | pytest -p no:black -p no:checkdocs -p no:cov -p no:mypy -p no:relaxed --setup-plan |
| | | # even there are no pytest tests available otherwise. |
| | | # |
| | | # The system-statistics plugin is disabled because it often causes the |
| | | # pytest to fail. |
| | | # See also https://github.com/saltstack/pytest-system-statistics/issues/4 |
| | | pytest -p no:black -p no:checkdocs -p no:cov -p no:mypy -p no:relaxed -p no:system-statistics --setup-plan |
| | | (($? != 5)) && TEST_STYLE="pytest" && break |
| | | |
| | | [[ -f setup.py ]] && python setup.py test --help && TEST_STYLE="setup.py" && break |