From 973d665ee25adcb5513f7fa0172c7423bcdeb768 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 11 Jun 2024 16:56:07 -0400 Subject: [PATCH] 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 --- tests/benchmark/test_benchmark | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"} -- 2.34.1