diff options
author | Paolo Abeni <pabeni@redhat.com> | 2024-02-12 10:39:41 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-13 10:10:11 -0800 |
commit | e58779f47e5eeb4fc9e3707951b81fbe31de5e3b (patch) | |
tree | f77b0348da61d2eba86fcb994c5c1506ccbf5cb5 | |
parent | e083dd032eeba9e28e4703cd5aaf4a409ebc3837 (diff) | |
download | linux-stable-e58779f47e5eeb4fc9e3707951b81fbe31de5e3b.tar.gz linux-stable-e58779f47e5eeb4fc9e3707951b81fbe31de5e3b.tar.bz2 linux-stable-e58779f47e5eeb4fc9e3707951b81fbe31de5e3b.zip |
selftests: net: cope with slow env in gro.sh test
The gro self-tests sends the packets to be aggregated with
multiple write operations.
When running is slow environment, it's hard to guarantee that
the GRO engine will wait for the last packet in an intended
train.
The above causes almost deterministic failures in our CI for
the 'large' test-case.
Address the issue explicitly ignoring failures for such case
in slow environments (KSFT_MACHINE_SLOW==true).
Fixes: 7d1575014a63 ("selftests/net: GRO coalesce test")
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/97d3ba83f5a2bfeb36f6bc0fb76724eb3dafb608.1707729403.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rwxr-xr-x | tools/testing/selftests/net/gro.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/gro.sh b/tools/testing/selftests/net/gro.sh index 19352f106c1d..02c21ff4ca81 100755 --- a/tools/testing/selftests/net/gro.sh +++ b/tools/testing/selftests/net/gro.sh @@ -31,6 +31,11 @@ run_test() { 1>>log.txt wait "${server_pid}" exit_code=$? + if [[ ${test} == "large" && -n "${KSFT_MACHINE_SLOW}" && \ + ${exit_code} -ne 0 ]]; then + echo "Ignoring errors due to slow environment" 1>&2 + exit_code=0 + fi if [[ "${exit_code}" -eq 0 ]]; then break; fi |