summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2020-05-31 00:44:24 +0200
committerTom Rini <[email protected]>2020-06-02 13:06:07 -0400
commit371a2e775322bd995a945f108c5c91bde342062a (patch)
tree0b2dbb64d9fc5d8dc684543cd68b2113c81b98f4
parentecd4d99f654f3f7bfb96001891d69c3125e70b69 (diff)
test/py: use actual core count for parallel builds
When building U-Boot we should not blindly use make -j8 but consider the actual core count given by os.cpu_count(). Signed-off-by: Heinrich Schuchardt <[email protected]> Reviewed-by: Simon Glass <[email protected]> Acked-by: Stephen Warren <[email protected]>
-rw-r--r--test/py/conftest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/conftest.py b/test/py/conftest.py
index e3392ff6bc4..30920474b36 100644
--- a/test/py/conftest.py
+++ b/test/py/conftest.py
@@ -156,7 +156,7 @@ def pytest_configure(config):
o_opt = ''
cmds = (
['make', o_opt, '-s', board_type + '_defconfig'],
- ['make', o_opt, '-s', '-j8'],
+ ['make', o_opt, '-s', '-j{}'.format(os.cpu_count())],
)
name = 'make'