diff options
author | Athira Rajeev <atrajeev@linux.vnet.ibm.com> | 2023-10-13 09:30:19 +0200 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2023-10-17 21:40:51 +0200 |
commit | 47f5693c4ce9b2bf2364303a531423e43278d3b6 (patch) | |
tree | 7426b521fe572462c0d2a1fc089feb8f48f1f6fe /tools/perf/tests | |
parent | tools/perf/arch/powerpc: Fix the CPU ID const char* value by adding 0x prefix (diff) | |
download | linux-47f5693c4ce9b2bf2364303a531423e43278d3b6.tar.xz linux-47f5693c4ce9b2bf2364303a531423e43278d3b6.zip |
perf tests: Ignore shellcheck warning in lock_contention
Running shellcheck on lock_contention.sh generates below
warning
In tests/shell/lock_contention.sh line 36:
if [ `nproc` -lt 4 ]; then
^-----^ SC2046: Quote this to prevent word splitting.
Here since nproc will generate a single word output
and there is no possibility of word splitting, this
warning can be ignored. Use exception for this with
"disable" option in shellcheck. This warning is observed
after commit:
"commit 29441ab3a30a ("perf test lock_contention.sh: Skip test
if not enough CPUs")"
Fixes: 29441ab3a30a ("perf test lock_contention.sh: Skip test if not enough CPUs")
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Reviewed-by: Kajol Jain <kjain@linux.ibm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: maddy@linux.ibm.com
Cc: disgoel@linux.vnet.ibm.com
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20231013073021.99794-2-atrajeev@linux.vnet.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/tests')
-rwxr-xr-x | tools/perf/tests/shell/lock_contention.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/shell/lock_contention.sh b/tools/perf/tests/shell/lock_contention.sh index d5a191d3d090..c1ec5762215b 100755 --- a/tools/perf/tests/shell/lock_contention.sh +++ b/tools/perf/tests/shell/lock_contention.sh @@ -33,6 +33,7 @@ check() { exit fi + # shellcheck disable=SC2046 if [ `nproc` -lt 4 ]; then echo "[Skip] Low number of CPUs (`nproc`), lock event cannot be triggered certainly" err=2 |