From 87b240e5a97f45bc866b6cee7f1c4ba37d8d4e39 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 31 Mar 2024 16:14:36 +0200 Subject: [PATCH] build: use pytest-forked to replace boxed feature from xdist This is needed because of the code switching from one namespace to another. --- tests/ci/run.sh | 2 +- tests/integration/requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ci/run.sh b/tests/ci/run.sh index 8fe37038..7fe1443d 100755 --- a/tests/ci/run.sh +++ b/tests/ci/run.sh @@ -45,7 +45,7 @@ case "$(uname -s)" in Linux) # Integration tests cd ../tests/integration - sudo $(which python3) -m pytest -n 5 -vv || \ + sudo $(which python3) -m pytest -n5 -vv --forked || \ sudo $(which python3) -m pytest -vvv --last-failed --maxfail=5 ;; esac diff --git a/tests/integration/requirements.txt b/tests/integration/requirements.txt index 16f08e2d..301be5e1 100644 --- a/tests/integration/requirements.txt +++ b/tests/integration/requirements.txt @@ -2,4 +2,5 @@ pyroute2==0.7.3 pytest==7.2.0 pytest-helpers-namespace==2021.12.29 pytest-xdist==3.1.0 +pytest-forked==1.6.0 scapy==2.4.5 -- 2.39.5