Marcel Telka
2024-03-07 45ab7752ccb31d1980e7f9ec4e887127a9c2ee26
setup.py.mk: disable detailed tracebacks for pytest

1 files modified
8 ■■■■■ changed files
make-rules/setup.py.mk 8 ●●●●● patch | view | raw | blame | history
make-rules/setup.py.mk
@@ -481,6 +481,14 @@
PYTEST_FASTFAIL = -x
PYTEST_ADDOPTS += $(PYTEST_FASTFAIL)
# By default we are not interested to see the default long tracebacks.
# Detailed tracebacks are shown either for failures or xfails.  We aim to see
# testing passed so there should be no failures.  Since xfails are expected
# failures we are not interested in detailed tracebacks here at all since they
# could contain random data, like pointers, temporary file names, etc.
PYTEST_TRACEBACK = --tb=line
PYTEST_ADDOPTS += $(PYTEST_TRACEBACK)
# 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.