about summary refs log tree commit homepage
path: root/ci
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-18 10:15:10 +0000
committerEric Wong <e@80x24.org>2023-09-20 19:14:19 +0000
commit6b70d5f03b688ee24df38ea669c0d800a6ad3b49 (patch)
tree51f0bd6e3cc9739bbf9f43284fbe49fa65bc03a5 /ci
parentd6e792f9eb38258dd79eed7626b3cab1eb25cd1f (diff)
downloadpublic-inbox-6b70d5f03b688ee24df38ea669c0d800a6ad3b49.tar.gz
`getconf NPROCESSORS_ONLN' will succeed on GNU/Linux systems
anyways; and the non-underscore-prefixed invocation works fine
on all BSD flavors tested.

Thus the `nproc' and `gnproc' attempts will never be reached.
The only downside is we lose the ability to account for CPU
affinity, but that's probably not an issue since CPU affinity
(AFAIK) isn't a commonly-used feature.
Diffstat (limited to 'ci')
-rwxr-xr-xci/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/run.sh b/ci/run.sh
index 93790269..bd1d8a4d 100755
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -12,7 +12,7 @@ then
         $DO $MAKE clean >/dev/null
 fi
 NPROC=${NPROC-$({ getconf _NPROCESSORS_ONLN || getconf NPROCESSORS_ONLN ||
-        gnproc || nproc || echo 2; } 2>/dev/null)}
+                echo 2; } 2>/dev/null)}
 
 TEST_JOBS=${TEST_JOBS-1}
 $PERL -w ci/profiles.perl | while read args