run-tests: simplify NPROCS (cat usage is redundant).

This commit is contained in:
Juan RP 2019-04-20 21:54:08 +02:00 committed by Duncaen
parent 3cf3dafc20
commit 58f406756a

View File

@ -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=$?