-
- Downloads
selftests: mptcp: add evts_get_info helper
commit 06848c0f upstream. This patch adds a new helper get_info_value(), using 'sed' command to parse the value of the given item name in the line with the given keyword, to make chk_mptcp_info() and pedit_action_pkts() more readable. Also add another helper evts_get_info() to use get_info_value() to parse the output of 'pm_nl_ctl events' command, to make all the userspace pm selftests more readable, both in mptcp_join.sh and userspace_pm.sh. Reviewed-by:Matthieu Baerts <matttbe@kernel.org> Signed-off-by:
Geliang Tang <geliang.tang@suse.com> Signed-off-by:
Mat Martineau <martineau@kernel.org> Link: https://lore.kernel.org/r/20231128-send-net-next-2023107-v4-2-8d6b94150f6b@kernel.org Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Signed-off-by:
Matthieu Baerts (NGI0) <matttbe@kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- tools/testing/selftests/net/mptcp/mptcp_join.sh 8 additions, 11 deletionstools/testing/selftests/net/mptcp/mptcp_join.sh
- tools/testing/selftests/net/mptcp/mptcp_lib.sh 10 additions, 0 deletionstools/testing/selftests/net/mptcp/mptcp_lib.sh
- tools/testing/selftests/net/mptcp/userspace_pm.sh 39 additions, 47 deletionstools/testing/selftests/net/mptcp/userspace_pm.sh
Loading
Please register or sign in to comment