From 58f406756a495c203d8dc86d9c2b22467a731ec0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 20 Apr 2019 21:54:08 +0200 Subject: [PATCH] run-tests: simplify NPROCS (cat usage is redundant). --- run-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests b/run-tests index 9841cde0..3e2bb583 100755 --- a/run-tests +++ b/run-tests @@ -8,7 +8,7 @@ export LD_PRELOAD=$PWD/lib/libxbps.so NPROCS=1 if [ -r /proc/cpuinfo ]; then - NPROCS=$(cat /proc/cpuinfo|grep processor|wc -l) + NPROCS=$(grep ^proc /proc/cpuinfo|wc -l) fi kyua --variable parallelism=$NPROCS test -r result.db -k tests/xbps/Kyuafile rv=$?