mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-02 08:11:32 -04:00
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: c73a56ed3c ("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>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
36a1b0061a
commit
c60ee958d6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user