]> 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)
commit2fd9461625188ca8606aaf72dabf9040128e85d6
tree57627563f7bd9f71cd4e4fa32e17d219343fe209
parent537faf0b7f8158c090661222fdbae8bdb8e3ba57
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