From: Mathieu Desnoyers Date: Tue, 11 Jun 2024 20:56:07 +0000 (-0400) Subject: Fix: test_benchmark: do not match "CPU(s) scaling MHz:" X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9b9714603cfa96a63a42dc9cb8266f81df42a4f3;p=lttng-ust.git Fix: test_benchmark: do not match "CPU(s) scaling MHz:" Do not match "CPU(s) scaling MHz:" line, it breaks the script. Signed-off-by: Mathieu Desnoyers Change-Id: Ifa392d018590e098dae75acef2b8265c8714c4cb --- diff --git a/tests/benchmark/test_benchmark b/tests/benchmark/test_benchmark index 33e5ed49..16d4a855 100755 --- a/tests/benchmark/test_benchmark +++ b/tests/benchmark/test_benchmark @@ -13,7 +13,7 @@ plan_tests 1 : ${ITERS:=10} : ${DURATION:=2} : ${NR_THREADS:=1} -: ${NR_CPUS:=$(lscpu | grep "^CPU(s)" | sed 's/^.*:[ \t]*//g')} +: ${NR_CPUS:=$(lscpu | grep "^CPU(s):" | sed 's/^.*:[ \t]*//g')} : ${TIME:="./$CURDIR/ptime"}