Fix various bash constructs in tests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | perf test: Remove bash construct from stat_bpf_counters.sh testtools/ | +1 | 0 replies | |
| 2/3 | perf tests: Remove bash construct from record+zstd_comp_decomp.shtools/ | +1 | 0 replies | |
| 3/3 | perf tests: Remove bash constructs from stat_all_pmu.shtools/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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