From: Li Zhijian Date: Thu, 13 Jan 2022 07:28:59 +0000 (+0800) Subject: kselftests/net: adapt the timeout to the largest runtime X-Git-Tag: v6.6.17~8358^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de0e444706ed98f2a13275a988d8595184be6d5c;p=platform%2Fkernel%2Flinux-rpi.git kselftests/net: adapt the timeout to the largest runtime timeout in settings is used by each case under the same directory, so it should adapt to the maximum runtime. A normally running net/fib_nexthops.sh may be killed by this unsuitable timeout. Furthermore, since the defect[1] of kselftests framework, net/fib_nexthops.sh which might take at least (300 * 4) seconds would block the whole kselftests framework previously. $ git grep -w 'sleep 300' tools/testing/selftests/net tools/testing/selftests/net/fib_nexthops.sh: sleep 300 tools/testing/selftests/net/fib_nexthops.sh: sleep 300 tools/testing/selftests/net/fib_nexthops.sh: sleep 300 tools/testing/selftests/net/fib_nexthops.sh: sleep 300 Enlarge the timeout by plus 300 based on the obvious largest runtime to avoid the blocking. [1]: https://www.spinics.net/lists/kernel/msg4185370.html Signed-off-by: Zhou Jie Signed-off-by: Li Zhijian Signed-off-by: David S. Miller --- diff --git a/tools/testing/selftests/net/settings b/tools/testing/selftests/net/settings index 694d707..dfc27cd 100644 --- a/tools/testing/selftests/net/settings +++ b/tools/testing/selftests/net/settings @@ -1 +1 @@ -timeout=300 +timeout=1500