From: Heinrich Schuchardt Date: Sat, 30 May 2020 22:44:24 +0000 (+0200) Subject: test/py: use actual core count for parallel builds X-Git-Tag: v2020.07-rc4~12^2~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=371a2e775322bd995a945f108c5c91bde342062a;p=oweals%2Fu-boot.git 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 Reviewed-by: Simon Glass Acked-by: Stephen Warren --- diff --git a/test/py/conftest.py b/test/py/conftest.py index e3392ff6bc..30920474b3 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'