[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c45dd146-0c70-348a-5680-35beb1b20285@linuxfoundation.org>
Date: Thu, 12 May 2022 08:28:03 -0600
From: Shuah Khan <skhan@...uxfoundation.org>
To: Amit Cohen <amcohen@...dia.com>, netdev@...r.kernel.org
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, shuah@...nel.org, mlxsw@...dia.com,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH net-next] selftests: fib_nexthops: Make the test more
robust
On 5/12/22 7:12 AM, Amit Cohen wrote:
> Rarely some of the test cases fail. Make the test more robust by increasing
> the timeout of ping commands to 5 seconds.
>
Can you explain why test cases fail?
> Signed-off-by: Amit Cohen <amcohen@...dia.com>
> ---
> tools/testing/selftests/net/fib_nexthops.sh | 48 ++++++++++-----------
> 1 file changed, 24 insertions(+), 24 deletions(-)
>
> diff --git a/tools/testing/selftests/net/fib_nexthops.sh b/tools/testing/selftests/net/fib_nexthops.sh
> index b3bf5319bb0e..a99ee3fb2e13 100755
> --- a/tools/testing/selftests/net/fib_nexthops.sh
> +++ b/tools/testing/selftests/net/fib_nexthops.sh
> @@ -882,13 +882,13 @@ ipv6_fcnal_runtime()
> log_test $? 0 "Route delete"
>
> run_cmd "$IP ro add 2001:db8:101::1/128 nhid 81"
> - run_cmd "ip netns exec me ping -c1 -w1 2001:db8:101::1"
> + run_cmd "ip netns exec me ping -c1 -w5 2001:db8:101::1"
> log_test $? 0 "Ping with nexthop"
>
Looks like the change uses "-w deadline" - "-W timeout" might
be a better choice if ping fails with no response?
thanks,
-- Shuah
Powered by blists - more mailing lists