]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: more stable diag tests
authorPaolo Abeni <pabeni@redhat.com>
Tue, 28 Jun 2022 01:02:41 +0000 (18:02 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Jun 2022 03:45:43 +0000 (20:45 -0700)
commit0f9d17c6635092aec6f36c259d582262217246e2
treee3daf7a01933859ab0778078261f74ebcfb6511a
parentd7dd78e66bd2c38114b0c903877bd284e4011ff1
selftests: mptcp: more stable diag tests

The mentioned test-case still use an hard-coded-len sleep to
wait for a relative large number of connection to be established.

On very slow VM and with debug build such timeout could be exceeded,
causing failures in our CI.

Address the issue polling for the expected condition several times,
up to an unreasonable high amount of time. On reasonably fast system
the self-tests will be faster then before, on very slow one we will
still catch the correct condition.

Fixes: cae0962fd3c5 ("selftests/mptcp: add diag interface tests")
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/diag.sh