Marcel Telka
2023-08-17 18da4f5d7e18f2605350281cf3126e2e64866658
setup.py.mk: add PYTEST_FASTFAIL

1 files modified
6 ■■■■■ changed files
make-rules/setup.py.mk 6 ●●●●● patch | view | raw | blame | history
make-rules/setup.py.mk
@@ -427,6 +427,12 @@
PYTEST_ADDOPTS += $(if $(filter library/python/pytest-relaxed-$(subst .,,$(PYTHON_VERSION)), $(REQUIRED_PACKAGES) $(TEST_REQUIRED_PACKAGES)),,-p no:relaxed)
PYTEST_ADDOPTS += $(if $(filter library/python/pytest-reporter-$(subst .,,$(PYTHON_VERSION)), $(REQUIRED_PACKAGES) $(TEST_REQUIRED_PACKAGES)),,-p no:reporter)
# By default we are not interested in full list of test failures so exit on
# first failure to save time.  This could be easily overridden from environment
# if needed (for example to debug test failures) or in per-component Makefile.
PYTEST_FASTFAIL = -x
PYTEST_ADDOPTS += $(PYTEST_FASTFAIL)
# Normalize pytest test results.  The pytest framework could be used either
# directly or via tox or setup.py so add these transforms for all test styles
# unconditionally.