selftests: mptcp: join: stop transfer when check is done (part 2)
authorMatthieu Baerts (NGI0) <matttbe@kernel.org>
Wed, 31 Jan 2024 21:49:54 +0000 (22:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Feb 2024 17:06:38 +0000 (09:06 -0800)
commit04b57c9e096a9479fe0ad31e3956e336fa589cb2
tree48f906b89d0474b0d4de7e57b8c21b7058f7d319
parent31ee4ad86afd6ed6f4bb1b38c43011216080c42a
selftests: mptcp: join: stop transfer when check is done (part 2)

Since the "Fixes" commits mentioned below, the newly added "userspace
pm" subtests of mptcp_join selftests are launching the whole transfer in
the background, do the required checks, then wait for the end of
transfer.

There is no need to wait longer, especially because the checks at the
end of the transfer are ignored (which is fine). This saves quite a few
seconds on slow environments.

While at it, use 'mptcp_lib_kill_wait()' helper everywhere, instead of
on a specific one with 'kill_tests_wait()'.

Fixes: b2e2248f365a ("selftests: mptcp: userspace pm create id 0 subflow")
Fixes: e3b47e460b4b ("selftests: mptcp: userspace pm remove initial subflow")
Fixes: b9fb176081fb ("selftests: mptcp: userspace pm send RM_ADDR for ID 0")
Cc: stable@vger.kernel.org
Reviewed-and-tested-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240131-upstream-net-20240131-mptcp-ci-issues-v1-9-4c1c11e571ff@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh