mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
77f4b8115c
commit
a72a31980d
1 changed files with 5 additions and 1 deletions
6
Makefile
6
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
|
||||
|
|
Loading…
Reference in a new issue