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=973d665ee25adcb5513f7fa0172c7423bcdeb768;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 0da40a57..e4e92249 100755 --- a/tests/benchmark/test_benchmark +++ b/tests/benchmark/test_benchmark @@ -11,7 +11,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"}