tools: honor FDO_CI_CONCURRENT in the tools option parser

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2023-03-20 09:18:30 +10:00
parent f276f3de54
commit 6bfd658173

View file

@ -368,7 +368,8 @@ def main():
try:
import xdist # noqa
args += ["-n", "auto"]
ncores = os.environ.get("FDO_CI_CONCURRENT", "auto")
args += ["-n", ncores]
except ImportError:
logger.info("python-xdist missing, this test will be slow")
pass