Skip to content

Fix for shellcheck issues with latest scripts in tests/shell

Athira Rajeev linux-perf-users linuxppc-dev lkml 2 versions – Applied

Status from this message: Applied to perf-tools-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v13 patches 17 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3tools/perf/tests Ignore the shellcheck SC2046 warning in lock_contentiontools/perf/tests/shell/lock_contention.sh+1 -00 replies
2/3tools/perf/tests: Fix shellcheck warning in record_sideband.sh testtools/perf/tests/shell/record_sideband.sh+1 -10 replies
3/3tools/perf/tests/shell: Fix shellcheck warning SC2112 with stat_all_metricgroupstools/perf/tests/shell/stat_all_metricgroups.sh+1 -10 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKajol JainNamhyung Kim
SeriesA-b
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/3] Fix for shellcheck issues with latest scripts in tests/shell

shellcheck was run on perf tool shell scripts as a pre-requisite to include a build option for shellcheck discussed here:
https://www.spinics.net/lists/linux-perf-users/msg25553.html

And fixes were added for the coding/formatting issues in two patchsets:
https://lore.kernel.org/linux-perf-users/[email protected]/
https://lore.kernel.org/linux-perf-users/[email protected]/

Three additional issues were observed and fixes are part of:
git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git

With recent commits in perf, other three issues are observed. shellcheck version: 0.6.0
The changes are with recent commits ( which is mentioned in each patch) for lock_contention, record_sideband and stat_all_metricgroups test. Patch series fixes these testcases and patches are on top of:
git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git

The version 1 patchset had fix patch for test_arm_coresight.sh. Dropping that in V2 based on discussion here:
https://lore.kernel.org/linux-perf-users/[email protected]/T/#u

Athira Rajeev (3):
tools/perf/tests Ignore the shellcheck SC2046 warning in
lock_contention
tools/perf/tests: Fix shellcheck warning in record_sideband.sh test tools/perf/tests/shell: Fix shellcheck warning SC2112 with
stat_all_metricgroups

 tools/perf/tests/shell/lock_contention.sh       | 1 +
 tools/perf/tests/shell/record_sideband.sh       | 2 +-
 tools/perf/tests/shell/stat_all_metricgroups.sh | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1