summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-02-07 15:04:52 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-02-08 11:29:58 -0300
commitc60ee958d625998422ff833ec0de0dcafc1165fa (patch)
treea0f693c15d0d9ff05cd0649b26674ceb72e2ee13 /tools
parent36a1b0061a584430277861fe5d8bd107aef26137 (diff)
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 <irogers@google.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/perf/tests/shell/record.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/shell/record.sh b/tools/perf/tests/shell/record.sh
index 46b96d565680..7cb81cf3444a 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