Bug: https://bugs.gentoo.org/924416
Signed-off-by: Zac Medico <zmed...@gentoo.org>
---
 .github/workflows/ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5bffd97206..762999b7cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -90,5 +90,8 @@ jobs:
       - name: Run tests for ${{ matrix.python-version }}
         run: |
           [[ "${{ matrix.start-method }}" == "spawn" ]] && export 
PORTAGE_MULTIPROCESSING_START_METHOD=spawn
-          export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n 
$(nproc) --dist=worksteal"
+          # spawn start-method crashes pytest-xdist workers (bug 924416)
+          [[ "${{ matrix.start-method }}" == "spawn" ]] && \
+            export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count" 
|| \
+            export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n 
$(nproc) --dist=worksteal"
           meson test -C /tmp/build --verbose
-- 
2.41.0


Reply via email to