2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Run system tests sequentially if xdist is not available

This commit is contained in:
Tom Krizek 2023-03-28 16:42:31 +02:00
parent 8952618262
commit 1cc55d01c7
No known key found for this signature in database
GPG Key ID: 01623B9B652A20A7

View File

@ -26,8 +26,13 @@ import pytest
def into_pytest_args(in_args):
args = []
if in_args.expression is None:
# running all tests - execute in parallel
args.extend(["-n", "auto"])
try:
import xdist
except ImportError:
pass
else:
# running all tests - execute in parallel
args.extend(["-n", "auto"])
else:
args.extend(["-k", in_args.expression])
if in_args.noclean: