]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 26 Aug 2022 08:54:15 +0000 (10:54 +0200)
commit40b0db8f520d482c73e0df7acf5f227d89aca67b
tree150d3ed105ee1068b9507db577ff9ce14aac7856
parent936339642278d6f7f52170f16ab63fc5a42d894b
selftests: mptcp: more stable diag tests

BugLink: https://bugs.launchpad.net/bugs/1986728
commit 42fb6cddec3b306c9f6ef136b6438e0de1836431 upstream.

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: df62f2ec3df6 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/testing/selftests/net/mptcp/diag.sh