summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-20 10:14:28 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-20 10:15:03 +0100
commite2992167ca894f82afa2fcdb23ff21ad4807ad37 (patch)
treea3199aa7289fb782c31b6c4b642590afb312b4e8 /eclass/tests
parentapp-arch/zstd: Removed old (diff)
downloadgentoo-e2992167ca894f82afa2fcdb23ff21ad4807ad37.tar.gz
gentoo-e2992167ca894f82afa2fcdb23ff21ad4807ad37.tar.bz2
gentoo-e2992167ca894f82afa2fcdb23ff21ad4807ad37.zip
eclass/tests/scons-utils.sh: Fix getting default job count
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/scons-utils.sh4
1 files changed, 2 insertions, 2 deletions
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