From: Michał Górny Date: Wed, 20 Nov 2019 09:14:28 +0000 (+0100) Subject: eclass/tests/scons-utils.sh: Fix getting default job count X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2992167ca894f82afa2fcdb23ff21ad4807ad37;p=gentoo.git eclass/tests/scons-utils.sh: Fix getting default job count Signed-off-by: Michał Górny --- diff --git a/eclass/tests/scons-utils.sh b/eclass/tests/scons-utils.sh index 7a588863c6a9..873312f67d07 100755 --- a/eclass/tests/scons-utils.sh +++ b/eclass/tests/scons-utils.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 source tests-common.sh @@ -27,7 +27,7 @@ test-scons_clean_makeopts() { } # jobcount expected for non-specified state -jc=$(_scons_get_default_jobs) +jc=$(( $(get_nproc) + 1 )) # failed test counter failed=0