Skip to content

Commit e58779f

Browse files
Paolo Abenikuba-moo
authored andcommitted
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: 7d15750 ("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>
1 parent e083dd0 commit e58779f

File tree

1 file changed

+5
-0
lines changed
  • tools/testing/selftests/net

1 file changed

+5
-0
lines changed

tools/testing/selftests/net/gro.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ run_test() {
3131
1>>log.txt
3232
wait "${server_pid}"
3333
exit_code=$?
34+
if [[ ${test} == "large" && -n "${KSFT_MACHINE_SLOW}" && \
35+
${exit_code} -ne 0 ]]; then
36+
echo "Ignoring errors due to slow environment" 1>&2
37+
exit_code=0
38+
fi
3439
if [[ "${exit_code}" -eq 0 ]]; then
3540
break;
3641
fi

0 commit comments

Comments
 (0)