selftests: mptcp: more stable join tests-cases
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Jan 2022 19:25:22 +0000 (11:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Jan 2022 03:00:43 +0000 (19:00 -0800)
commit327b9a94e2a805dea5238940c9660ca367dbfdef
tree57627563f7bd9f71cd4e4fa32e17d219343fe209
parent5cad43a52ee3caf451cd645baa4beb53a1733dae
selftests: mptcp: more stable join tests-cases

MPTCP join self-tests are a bit fragile as they reply on
delays instead of events to catch-up with the expected
sockets states.

Replace the delay with state checking where possible and
reduce the number of sleeps in the most complex scenarios.

This will both reduce the tests run-time and will improve
stability.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh