Run GUI tests on separate processes

Run our GUI tests on separate processes, because the combination of
Ubuntu Focal, Qt5, PySide6, and pytest-qt somehow leads to segfaults,
probably due to stale global state.

Closes #493
This commit is contained in:
Alex Pyrgiotis 2023-07-31 20:47:29 +03:00
parent 77f4b8115c
commit a72a31980d
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -37,7 +37,11 @@ lint-apply: lint-black-apply lint-isort-apply ## apply all the linter's suggesti
.PHONY: test
test:
pytest -v --cov --ignore dev_scripts
# Make each GUI test run as a separate process, to avoid segfaults due to
# shared state.
# See more in https://github.com/freedomofpress/dangerzone/issues/493
pytest --co -q tests/gui | grep -v ' collected' | xargs -n 1 pytest -v
pytest -v --cov --ignore dev_scripts --ignore tests/gui
# Makefile self-help borrowed from the securedrop-client project