aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/net/mptcp/mptcp_lib.sh
diff options
context:
space:
mode:
authorGeliang Tang <tanggeliang@kylinos.cn>2024-03-08 23:10:15 +0100
committerJakub Kicinski <kuba@kernel.org>2024-03-11 15:07:26 -0700
commite7c42bf4d320affe37337aa83ae0347832b3f568 (patch)
treea67bfe8bf6c48e2e4ce33a6277d2e04577175ddd /tools/testing/selftests/net/mptcp/mptcp_lib.sh
parentselftests: mptcp: print test results with counters (diff)
downloadwireguard-linux-e7c42bf4d320affe37337aa83ae0347832b3f568.tar.xz
wireguard-linux-e7c42bf4d320affe37337aa83ae0347832b3f568.zip
selftests: mptcp: use += operator to append strings
This patch uses addition assignment operator (+=) to append strings instead of duplicating the variable name in mptcp_connect.sh and mptcp_join.sh. This can make the statements shorter. Note: in mptcp_connect.sh, add a local variable extra in do_transfer to save the various extra warning logs, using += to append it. And add a new variable tc_info to save various tc info, also using += to append it. This can make the code more readable and prepare for the next commit. Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://lore.kernel.org/r/20240308-upstream-net-next-20240308-selftests-mptcp-unification-v1-8-4f42c347b653@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/mptcp/mptcp_lib.sh')
0 files changed, 0 insertions, 0 deletions