Marcel Telka
2023-06-28 808d8aec432aebc40e5986bc9908ddbfa1fdba09
setup.py.mk: force pytest --color=no when run via tox too

1 files modified
6 ■■■■ changed files
make-rules/setup.py.mk 6 ●●●● patch | view | raw | blame | history
make-rules/setup.py.mk
@@ -389,9 +389,6 @@
COMPONENT_TEST_ARGS =        $(PYTEST_ADDOPTS)
COMPONENT_TEST_TARGETS =
# Force pytest to not use colored output so the results normalization is unaffected
PYTEST_ADDOPTS += --color=no
USERLAND_TEST_REQUIRED_PACKAGES += library/python/pytest
else ifeq ($(strip $(TEST_STYLE)),unittest)
COMPONENT_TEST_CMD =        $(PYTHON) -m unittest
@@ -410,6 +407,9 @@
# Run pytest verbose to get separate line per test in results output
PYTEST_ADDOPTS += --verbose
# Force pytest to not use colored output so the results normalization is unaffected
PYTEST_ADDOPTS += --color=no
# 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.