]> Git Repo - linux.git/commit
selftests: mptcp: add mptcp_lib_kill_wait
authorGeliang Tang <[email protected]>
Tue, 28 Nov 2023 23:18:53 +0000 (15:18 -0800)
committerJakub Kicinski <[email protected]>
Thu, 30 Nov 2023 04:06:18 +0000 (20:06 -0800)
commitbdbef0a6ff10603895b0ba39f56bf874cb2b551a
tree4c7d8aa21e17c697058da5ae02da79199ea6c314
parentb9fb176081fb216c43d923888f0d53d9e3a5965b
selftests: mptcp: add mptcp_lib_kill_wait

To avoid duplicated code in different MPTCP selftests, we can add
and use helpers defined in mptcp_lib.sh.

Export kill_wait() helper in userspace_pm.sh into mptcp_lib.sh and
rename it as mptcp_lib_kill_wait(). It can be used to instead of
kill_wait() in mptcp_join.sh. Use the new helper in both scripts.

Reviewed-by: Matthieu Baerts <[email protected]>
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
tools/testing/selftests/net/mptcp/mptcp_join.sh
tools/testing/selftests/net/mptcp/mptcp_lib.sh
tools/testing/selftests/net/mptcp/userspace_pm.sh
This page took 0.054466 seconds and 4 git commands to generate.