run-tests: simplify NPROCS (cat usage is redundant).
This commit is contained in:
parent
3cf3dafc20
commit
58f406756a
@ -8,7 +8,7 @@ export LD_PRELOAD=$PWD/lib/libxbps.so
|
|||||||
|
|
||||||
NPROCS=1
|
NPROCS=1
|
||||||
if [ -r /proc/cpuinfo ]; then
|
if [ -r /proc/cpuinfo ]; then
|
||||||
NPROCS=$(cat /proc/cpuinfo|grep processor|wc -l)
|
NPROCS=$(grep ^proc /proc/cpuinfo|wc -l)
|
||||||
fi
|
fi
|
||||||
kyua --variable parallelism=$NPROCS test -r result.db -k tests/xbps/Kyuafile
|
kyua --variable parallelism=$NPROCS test -r result.db -k tests/xbps/Kyuafile
|
||||||
rv=$?
|
rv=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user