Fix: test_benchmark: do not match "CPU(s) scaling MHz:" stable-2.13
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 Jun 2024 20:56:07 +0000 (16:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 1 Nov 2024 14:40:42 +0000 (10:40 -0400)
Do not match "CPU(s) scaling MHz:" line, it breaks the script.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ifa392d018590e098dae75acef2b8265c8714c4cb

tests/benchmark/test_benchmark

index 0da40a57c3b2c2b50cc559d99beb616d73f18350..e4e922496a2f57d1aec8c4f1f294b5401f52956b 100755 (executable)
@@ -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"}
 
This page took 0.026117 seconds and 4 git commands to generate.