eclass/tests/scons-utils.sh: Fix getting default job count
authorMichał Górny <mgorny@gentoo.org>
Wed, 20 Nov 2019 09:14:28 +0000 (10:14 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 20 Nov 2019 09:15:03 +0000 (10:15 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/tests/scons-utils.sh

index 7a588863c6a9af09504c2ca301b9b73f77d4fe7d..873312f67d07246585d5b5c4076fc874f92cb854 100755 (executable)
@@ -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