selftests/net: packetdrill: make tcp buf limited timing tests benign
authorJakub Kicinski <kuba@kernel.org>
Wed, 15 Jan 2025 23:21:29 +0000 (15:21 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jan 2025 01:23:22 +0000 (17:23 -0800)
The following tests are failing on debug kernels:

  tcp_tcp_info_tcp-info-rwnd-limited.pkt
  tcp_tcp_info_tcp-info-sndbuf-limited.pkt

with reports like:

      assert 19000 <= tcpi_sndbuf_limited <= 21000, tcpi_sndbuf_limited; \
  AssertionError: 18000

and:

      assert 348000 <= tcpi_busy_time <= 360000, tcpi_busy_time
  AssertionError: 362000

Extend commit 912d6f669725 ("selftests/net: packetdrill: report benign
debug flakes as xfail") to cover them.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250115232129.845884-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/packetdrill/ksft_runner.sh

index ff989c3..e15c43b 100755 (executable)
@@ -43,6 +43,7 @@ if [[ -n "${KSFT_MACHINE_SLOW}" ]]; then
                "tcp_timestamping.*.pkt"
                "tcp_user_timeout_user-timeout-probe.pkt"
                "tcp_zerocopy_epoll_.*.pkt"
+               "tcp_tcp_info_tcp-info-*-limited.pkt"
        )
        readonly xfail_regex="^($(printf '%s|' "${xfail_list[@]}"))$"
        [[ "$script" =~ ${xfail_regex} ]] && failfunc=ktap_test_xfail