From e81ecbc288d56f4f01d058b011e60156ca5d66e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 11 Jun 2024 17:51:01 +0200 Subject: [PATCH] Revert "tests: run all the tests with one command" This reverts commit 3ba918188803259afa46f99f8356b12b925b8f8c, and reintroduces the pytest runs as separate processes. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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