]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: net: cope with slow env in so_txtime.sh test
authorPaolo Abeni <pabeni@redhat.com>
Mon, 12 Feb 2024 09:43:31 +0000 (10:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 Feb 2024 18:10:44 +0000 (10:10 -0800)
commita7ee79b9c4553498c78552d12321d85b645f02ca
treedf406595a8399d363d9e85ff1172ba73601335d9
parente58779f47e5eeb4fc9e3707951b81fbe31de5e3b
selftests: net: cope with slow env in so_txtime.sh test

The mentioned test is failing in slow environments:

  # SO_TXTIME ipv4 clock monotonic
  # ./so_txtime: recv: timeout: Resource temporarily unavailable
  not ok 1 selftests: net: so_txtime.sh # exit=1

Tuning the tolerance in the test binary is error-prone and doomed
to failures is slow-enough environment.

Just resort to suppress any error in such cases. Note to suppress
them we need first to refactor a bit the code moving it to explicit
error handling.

Fixes: af5136f95045 ("selftests/net: SO_TXTIME with ETF and FQ")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/2142d9ed4b5c5aa07dd1b455779625d91b175373.1707730902.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/so_txtime.sh