diff --git a/Makefile b/Makefile index 87636b4..c290cd1 100644 --- a/Makefile +++ b/Makefile @@ -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