Skip to content

Fix various bash constructs in tests

James Clark bpf linux-perf-users lkml netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf test: Remove bash construct from stat_bpf_counters.sh testtools/perf/tests/shell/stat_bpf_counters.sh+1 -10 replies
2/3perf tests: Remove bash construct from record+zstd_comp_decomp.shtools/perf/tests/shell/record+zstd_comp_decomp.sh+1 -10 replies
3/3perf tests: Remove bash constructs from stat_all_pmu.shtools/perf/tests/shell/stat_all_pmu.sh+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fix various bash constructs in tests

These tests were either failing or printing warnings on my Ubuntu 18 and 20 systems. I'm not sure if there is a system where /bin/sh allows bash constructs, or perf invokes bash instead of sh, but I saw that there have been similar fixes made in the past so I assume this should be done.

Adding set -e to the scripts didn't highlight these issues, so I didn't do it at this time.

For stat_bpf_counters.sh, there are further bashisms after the skip, but I couldn't get BPF working, so I only fixed it up to that point.

Applies to perf/core 624ff63abfd36

James Clark (3):
perf test: Remove bash construct from stat_bpf_counters.sh test perf tests: Remove bash construct from record+zstd_comp_decomp.sh perf tests: Remove bash constructs from stat_all_pmu.sh

 tools/perf/tests/shell/record+zstd_comp_decomp.sh | 2 +-
 tools/perf/tests/shell/stat_all_pmu.sh            | 4 ++--
 tools/perf/tests/shell/stat_bpf_counters.sh       | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.28.0