]> www.infradead.org Git - users/jedix/linux-maple.git/commit
torture: Correctly fetch number of CPUs for non-English languages
authorFrederic Weisbecker <frederic@kernel.org>
Thu, 1 Apr 2021 13:26:02 +0000 (15:26 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 6 Apr 2021 23:10:34 +0000 (16:10 -0700)
commitae4644af1b9a077a70261f6eec8ba7780769d052
tree447445e5b727294de75e5e69a04978a430510368
parentb61449a0d773d9cf99566a5c2739507befe07d23
torture: Correctly fetch number of CPUs for non-English languages

Grepping for "CPU" on lscpu output isn't always successful, depending
on the local language setting.  As a result, the build can be aborted
early with:

"make: the '-j' option requires a positive integer argument"

This commit therefore uses the human-language-independent approach
available via the getconf command, both in kvm-build.sh and in
kvm-remote.sh.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/testing/selftests/rcutorture/bin/kvm-build.sh
tools/testing/selftests/rcutorture/bin/kvm-remote.sh