diff --git a/Makefile b/Makefile index efadf4c..603216b 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,11 @@ lint-apply: lint-black-apply lint-isort-apply ## apply all the linter's suggesti .PHONY: test test: - pytest -v --cov --ignore dev_scripts --ignore tests/test_large_set.py + # 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 --ignore tests/test_large_set.py .PHONY: test-large-requirements