Message ID | c777f75ac70e70aabf1398cefa5c51c0f4ea00f2.1707330768.git.pabeni@redhat.com |
---|---|
State | Accepted |
Commit | e58779f47e5eeb4fc9e3707951b81fbe31de5e3b |
Headers | show |
Series | [net,v2] selftests: net: cope with slow env in gro.sh test | expand |
On Fri, 2024-02-09 at 11:15 -0800, Jakub Kicinski wrote: > On Wed, 7 Feb 2024 19:36:46 +0100 Paolo Abeni wrote: > > + if [[ ${test} == "large" && -n "${KSFT_MACHINE_SLOW}" ]]; then > > + echo "Ignoring errors due to slow environment" 1>&2 > > + exit_code=0 > > + fi > > Would it make sense to also add "&& $exit_code -ne 0" ? > It may be useful to see in logs how many times we actually > ignored the error? Yep, I'll send a v3. Thanks! Paolo
diff --git a/tools/testing/selftests/net/gro.sh b/tools/testing/selftests/net/gro.sh index 19352f106c1d..3190b41e8bfc 100755 --- a/tools/testing/selftests/net/gro.sh +++ b/tools/testing/selftests/net/gro.sh @@ -31,6 +31,10 @@ run_test() { 1>>log.txt wait "${server_pid}" exit_code=$? + if [[ ${test} == "large" && -n "${KSFT_MACHINE_SLOW}" ]]; then + echo "Ignoring errors due to slow environment" 1>&2 + exit_code=0 + fi if [[ "${exit_code}" -eq 0 ]]; then break; fi