]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbcf5aee62ed70ca62e524e8e7dd633e9d39a483b
tree57627563f7bd9f71cd4e4fa32e17d219343fe209
parent322f4e408910370c05855ee0b167ff154d2b2253
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