mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Run system tests sequentially if xdist is not available
This commit is contained in:
@@ -26,8 +26,13 @@ import pytest
|
|||||||
def into_pytest_args(in_args):
|
def into_pytest_args(in_args):
|
||||||
args = []
|
args = []
|
||||||
if in_args.expression is None:
|
if in_args.expression is None:
|
||||||
# running all tests - execute in parallel
|
try:
|
||||||
args.extend(["-n", "auto"])
|
import xdist
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
# running all tests - execute in parallel
|
||||||
|
args.extend(["-n", "auto"])
|
||||||
else:
|
else:
|
||||||
args.extend(["-k", in_args.expression])
|
args.extend(["-k", in_args.expression])
|
||||||
if in_args.noclean:
|
if in_args.noclean:
|
||||||
|
Reference in New Issue
Block a user