test/py: use actual core count for parallel builds
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 30 May 2020 22:44:24 +0000 (00:44 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 2 Jun 2020 17:06:07 +0000 (13:06 -0400)
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 <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
test/py/conftest.py

index e3392ff6bc4eec691f643555394bea9cac0078db..30920474b3627e9845a09c02d01cfa1491f44113 100644 (file)
@@ -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'