tools: honor FDO_CI_CONCURRENT in the tools option parser
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 19 Mar 2023 23:18:30 +0000 (09:18 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 20 Mar 2023 22:13:19 +0000 (22:13 +0000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/test_tool_option_parsing.py

index 5c33db6d9bb54ce8df9ba977b68b85fd3573225a..c11489483f4f20d0a01ef94436489087ca4c9ade 100755 (executable)
@@ -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