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 <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
Heinrich Schuchardt 2020-05-31 00:44:24 +02:00 committed by Tom Rini
parent ecd4d99f65
commit 371a2e7753

View 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'