From: Ian Rogers Date: Sat, 7 Feb 2026 23:04:52 +0000 (-0800) Subject: perf test record.sh: Fix shellcheck warning X-Git-Tag: v7.0-rc1~16^2~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c60ee958d625998422ff833ec0de0dcafc1165fa;p=thirdparty%2Fkernel%2Flinux.git perf test record.sh: Fix shellcheck warning Add quotes to avoid the following warning: ``` In tests/shell/record.sh line 264: [ $(uname -m) = "s390x" ] && { ^---------^ SC2046 (warning): Quote this to prevent word splitting. For more information: https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt... ``` Fixes: c73a56ed3c97ae65 ("perf test: Fix test case Leader sampling on s390") Signed-off-by: Ian Rogers Cc: Namhyung Kim Cc: Thomas Richter Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/tests/shell/record.sh b/tools/perf/tests/shell/record.sh index 46b96d5656802..7cb81cf3444a7 100755 --- a/tools/perf/tests/shell/record.sh +++ b/tools/perf/tests/shell/record.sh @@ -261,7 +261,7 @@ test_uid() { test_leader_sampling() { echo "Basic leader sampling test" events="{cycles,cycles}:Su" - [ $(uname -m) = "s390x" ] && { + [ "$(uname -m)" = "s390x" ] && { [ ! -d /sys/devices/cpum_sf ] && { echo "No CPUMF [Skipped record]" return