All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next 0/6] selftests: mptcp: fix shellcheck warnings
@ 2024-02-22 16:27 Matthieu Baerts (NGI0)
  2024-02-22 16:27 ` [PATCH mptcp-next 1/6] selftests: mptcp: diag: " Matthieu Baerts (NGI0)
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Matthieu Baerts (NGI0) @ 2024-02-22 16:27 UTC (permalink / raw)
  To: mptcp; +Cc: Matthieu Baerts (NGI0)

shellcheck recently helped to prevent issues. It is then good to fix the
other harmless issues in order to spot "real" ones later.

Note that 3 scripts were already compliant: mptcp_join.sh, mptcp_lib.sh,
and userspace_pm.sh. mptcp_lib.sh was compliant from the beginning.

The modifications are minor, mainly because SC2086 has been ignored:
Double quote to prevent globbing and word splitting. This is
recommended, but the current usage is correct and there is no need to do
all these modifications to be compliant with this rule. New files, like
mptcp-lib.sh, should not have that rule ideally. Ideally new code other
existing files should use double quotes when needed.

Once applied, I'm planning to add a check on the CI side to catch new
issues, not to have to check that manually and report issues when
applying patches, like I had to do a few times very recently.

The last patch is not related to shellcheck, but I found this while
looking at the scripts: in userspace_pm.sh, we launch 'pm_nl_ctl events'
once, then kill it, then relaunch it using the same temp files.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Matthieu Baerts (NGI0) (6):
      selftests: mptcp: diag: fix shellcheck warnings
      selftests: mptcp: connect: fix shellcheck warnings
      selftests: mptcp: sockopt: fix shellcheck warnings
      selftests: mptcp: pm netlink: fix shellcheck warnings
      selftests: mptcp: simult flows: fix shellcheck warnings
      selftests: userspace pm: avoid relaunching pm events

 tools/testing/selftests/net/mptcp/diag.sh          | 14 ++--
 tools/testing/selftests/net/mptcp/mptcp_connect.sh | 76 +++++++++++++---------
 tools/testing/selftests/net/mptcp/mptcp_sockopt.sh | 14 ++--
 tools/testing/selftests/net/mptcp/pm_netlink.sh    | 14 ++--
 tools/testing/selftests/net/mptcp/simult_flows.sh  | 10 ++-
 tools/testing/selftests/net/mptcp/userspace_pm.sh  | 29 ++++-----
 6 files changed, 98 insertions(+), 59 deletions(-)
---
base-commit: 482712b4b5fc44b30dcd54409cbab4ec7e405294
change-id: 20240222-selftests-mptcp-shellcheck-80338a0300c5

Best regards,
-- 
Matthieu Baerts (NGI0) <matttbe@kernel.org>


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

end of thread, other threads:[~2024-02-23 13:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22 16:27 [PATCH mptcp-next 0/6] selftests: mptcp: fix shellcheck warnings Matthieu Baerts (NGI0)
2024-02-22 16:27 ` [PATCH mptcp-next 1/6] selftests: mptcp: diag: " Matthieu Baerts (NGI0)
2024-02-22 16:27 ` [PATCH mptcp-next 2/6] selftests: mptcp: connect: " Matthieu Baerts (NGI0)
2024-02-22 16:27 ` [PATCH mptcp-next 3/6] selftests: mptcp: sockopt: " Matthieu Baerts (NGI0)
2024-02-22 16:28 ` [PATCH mptcp-next 4/6] selftests: mptcp: pm netlink: " Matthieu Baerts (NGI0)
2024-02-22 16:28 ` [PATCH mptcp-next 5/6] selftests: mptcp: simult flows: " Matthieu Baerts (NGI0)
2024-02-22 16:28 ` [PATCH mptcp-next 6/6] selftests: userspace pm: avoid relaunching pm events Matthieu Baerts (NGI0)
2024-02-22 17:18   ` selftests: userspace pm: avoid relaunching pm events: Tests Results MPTCP CI
2024-02-22 20:01 ` [PATCH mptcp-next 0/6] selftests: mptcp: fix shellcheck warnings Mat Martineau
2024-02-23 13:35   ` Matthieu Baerts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.