tools: tests: fix shellcheck warnings
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest8 patches 1 replyApplied
- v18 patches 9 repliesSuperseded
Changes in v2 from the cover letter
- fix links in checkin comments
- fix subject of patch 2
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | tools: tests: don't mix string and arraytools/ | +9 | 0 replies | |
| 2/8 | tools: tests: declare and assign separatelytools/ | +17 | 0 replies | |
| 3/8 | tools: tests: fix unused variablestools/ | +4 | 0 replies | |
| 4/8 | tools: tests: use read -r to avoid mangling backslashestools/ | +4 | 0 replies | |
| 5/8 | tools: tests: don't use variables in printf format stringtools/ | +2 | 0 replies | |
| 6/8 | tools: tests: check exit code directlytools/ | +1 | 0 replies | |
| 7/8 | tools: tests: shellcheck don't follow sourced filetools/ | +1 | 0 replies | |
| 8/8 | tools: tests: avoid splitting and globbingtools/ | +198 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [libgpiod][PATCH v2 0/8] tools: tests: fix shellcheck warnings
Following up on recent discussions, this series fixes all the warnings detected by shellcheck. The resulting tools test script is now clean, at least from the perspective of shellcheck.
These fixes do not correct any known issue, other than shellcheck reporting them as potential problems, the intent is to remove common shell issues that may impact future changes, and to simplify checking that any subsequent changes to the test script constitute "good" shell.
All the patches other than Patch 8 address a particular warning. They are reasonably self-explanatory, but each commit comment includes a link to the relevant warning(s) which describes the issue and the appropriate corrections.
Patch 8 addresses a number of warnings, all related to word splitting and globbing, and those constitute the bulk of the changes. Some of the earlier patches also address trivial splitting/globbing issues where that would prevent a line being modified multiple times.
Cheers,
Kent.
Changes v1 -> v2:
- fix links in checkin comments
- fix subject of patch 2
Kent Gibson (8):
tools: tests: don't mix string and array
tools: tests: declare and assign separately
tools: tests: fix unused variables
tools: tests: use read -r to avoid mangling backslashes
tools: tests: don't use variables in printf format string
tools: tests: check exit code directly
tools: tests: shellcheck don't follow sourced file
tools: tests: avoid splitting and globbing
tools/gpio-tools-test.bash | 459 +++++++++++++++++++------------------ 1 file changed, 234 insertions(+), 225 deletions(-)
Signature · 1 line
2.39.2