diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2022-01-13 15:28:59 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-13 12:53:22 +0000 |
commit | de0e444706ed98f2a13275a988d8595184be6d5c (patch) | |
tree | fb0e4b9387577523256e01fc3644dc38482b8af3 /tools | |
parent | 33cb0ff30cff104e753f7882c99e54cf67ea7903 (diff) | |
download | linux-de0e444706ed98f2a13275a988d8595184be6d5c.tar.bz2 |
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 <zhoujie2011@fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/net/settings | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/net/settings b/tools/testing/selftests/net/settings index 694d70710ff0..dfc27cdc6c05 100644 --- a/tools/testing/selftests/net/settings +++ b/tools/testing/selftests/net/settings @@ -1 +1 @@ -timeout=300 +timeout=1500 |