Skip to content

Commit c60ee95

Browse files
captain5050acmel
authored andcommitted
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: c73a56e ("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>
1 parent 36a1b00 commit c60ee95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/perf/tests/shell/record.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ test_uid() {
261261
test_leader_sampling() {
262262
echo "Basic leader sampling test"
263263
events="{cycles,cycles}:Su"
264-
[ $(uname -m) = "s390x" ] && {
264+
[ "$(uname -m)" = "s390x" ] && {
265265
[ ! -d /sys/devices/cpum_sf ] && {
266266
echo "No CPUMF [Skipped record]"
267267
return

0 commit comments

Comments
 (0)