linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libgpiod v3 0/4] tools: tests: fix a few issues in bash scripts
@ 2024-05-28  8:25 Bartosz Golaszewski
  2024-05-28  8:25 ` [PATCH libgpiod v3 1/4] tools: tests: use tabs for indentation consistently Bartosz Golaszewski
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Bartosz Golaszewski @ 2024-05-28  8:25 UTC (permalink / raw)
  To: Andy Shevchenko, Kent Gibson, Linus Walleij
  Cc: Bartosz Golaszewski, linux-gpio

Fix a few issues with tools tests reported by Andy.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Changes in v3:
- Use $* in the message string in assert_fail()
- Make shellcheck happy when using find exclusively instead of find + grep
- Link to v2: https://lore.kernel.org/r/20240527-fix-bash-tests-v2-0-05d90cea24cd@linaro.org

Changes in v2:
- Use double quotes around $@ to prevent globbing but allow variable expansion
- Link to v1: https://lore.kernel.org/r/20240524-fix-bash-tests-v1-0-1397c73073a6@linaro.org

---
Bartosz Golaszewski (4):
      tools: tests: use tabs for indentation consistently
      tools: tests: use "$@" instead of $*
      tools: tests: remove unneeded ';' in while loops
      tools: tests: remove dependency on grep

 tools/gpio-tools-test.bash | 46 ++++++++++++++++++----------------------------
 1 file changed, 18 insertions(+), 28 deletions(-)
---
base-commit: 27fe10150f6d5fa78d1a1ef1e922dc8395d1154d
change-id: 20240524-fix-bash-tests-545bf26447b3

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-05-29 13:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28  8:25 [PATCH libgpiod v3 0/4] tools: tests: fix a few issues in bash scripts Bartosz Golaszewski
2024-05-28  8:25 ` [PATCH libgpiod v3 1/4] tools: tests: use tabs for indentation consistently Bartosz Golaszewski
2024-05-28  8:25 ` [PATCH libgpiod v3 2/4] tools: tests: use "$@" instead of $* Bartosz Golaszewski
2024-05-28  8:25 ` [PATCH libgpiod v3 3/4] tools: tests: remove unneeded ';' in while loops Bartosz Golaszewski
2024-05-28  8:25 ` [PATCH libgpiod v3 4/4] tools: tests: remove dependency on grep Bartosz Golaszewski
2024-05-28  8:34 ` [PATCH libgpiod v3 0/4] tools: tests: fix a few issues in bash scripts Kent Gibson
2024-05-29 13:18   ` Andy Shevchenko
2024-05-29 13:54 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).