]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: getting paraller_jobs more robust
authorRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 28 Mar 2014 14:48:41 +0000 (15:48 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Sat, 29 Mar 2014 00:13:13 +0000 (01:13 +0100)
commit6163259cbd8a53a3af381fbf3822e6505704696e
treeeefcdbb1ef162b87fd1432b51f0bc55b676a824d
parent5b575d4381591d2744aafb957e149e88739921d2
tests: getting paraller_jobs more robust

This patch fixes several issues:
 1. lscpu may not exist on all systems.
 2. Option -b is not always available but we can skip it because it's
    the documented default for -p.
 3. Some old lscpu versions print --help output to stdout in case of
    error. So in case 2. it would count all the help lines as CPUs,
    which could be really bad on slow single core machines.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/run.sh