]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: use pytest-forked to replace boxed feature from xdist
authorVincent Bernat <vincent@bernat.ch>
Sun, 31 Mar 2024 14:14:36 +0000 (16:14 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sun, 31 Mar 2024 14:14:36 +0000 (16:14 +0200)
This is needed because of the code switching from one namespace to
another.

tests/ci/run.sh
tests/integration/requirements.txt

index 8fe37038b61dde8fd6afbc036ad8c7841c7a1a7a..7fe1443d1de506c7578f175b12addaee94a59523 100755 (executable)
@@ -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
index 16f08e2dc4670828a37ea410253dec535e738f87..301be5e14593d22dff2edc2fd10abb833c5f016e 100644 (file)
@@ -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