diff options
author | Ross Burton <ross.burton@arm.com> | 2024-03-15 14:37:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-19 15:25:12 +0000 |
commit | b2191bb7a706f163251c6f1c284dfb22d28fccad (patch) | |
tree | 1d85cf02b6ea5b0722a0cdfcdeb6e3a77a052224 /meta/recipes-support | |
parent | 264a3f429aaac2da5019f9f9d368bd25fa51d7a9 (diff) | |
download | poky-b2191bb7a706f163251c6f1c284dfb22d28fccad.tar.gz |
curl: increase test timeouts
We often see multiple curl tests fail during ptest runs, the actual test
varies but the output is like this:
FAIL: 337: protoc!
There was no content at all in the file log/3/server.input.
Server glitch? Total curl failure? Returned: 28
Error code 28 is CURLE_OPERATION_TIMEDOUT, so this is almost certainly
due to a loaded machine resulting in the tests running slowly.
It is notable that the test runner explicitly passes --max-time=13 to
curl, so experiment and change this to 600 to see if this solves the
problem.
[ YOCTO #15268 ]
(From OE-Core rev: e2e9ec1bf97a7e36a05a247dbc671ecca584205f)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/curl/curl/no-test-timeout.patch | 18 | ||||
-rw-r--r-- | meta/recipes-support/curl/curl_8.6.0.bb | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/no-test-timeout.patch b/meta/recipes-support/curl/curl/no-test-timeout.patch new file mode 100644 index 0000000000..b4cfe716db --- /dev/null +++ b/meta/recipes-support/curl/curl/no-test-timeout.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Set the max-time timeout to 600 so the timeout is 10 minutes instead of 13 seconds. | ||
2 | |||
3 | Upstream-Status: Inappropriate | ||
4 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
5 | |||
6 | diff --git a/tests/servers.pm b/tests/servers.pm | ||
7 | index d4472d509..aeab62c47 100644 | ||
8 | --- a/tests/servers.pm | ||
9 | +++ b/tests/servers.pm | ||
10 | @@ -120,7 +120,7 @@ my $sshdverstr; # for socks server, ssh daemon version string | ||
11 | my $sshderror; # for socks server, ssh daemon version error | ||
12 | my %doesntrun; # servers that don't work, identified by pidfile | ||
13 | my %PORT = (nolisten => 47); # port we use for a local non-listening service | ||
14 | -my $server_response_maxtime=13; | ||
15 | +my $server_response_maxtime=600; | ||
16 | my $httptlssrv = find_httptlssrv(); | ||
17 | my %run; # running server | ||
18 | my %runcert; # cert file currently in use by an ssl running server | ||
diff --git a/meta/recipes-support/curl/curl_8.6.0.bb b/meta/recipes-support/curl/curl_8.6.0.bb index d4473d868e..ea69164d76 100644 --- a/meta/recipes-support/curl/curl_8.6.0.bb +++ b/meta/recipes-support/curl/curl_8.6.0.bb | |||
@@ -13,6 +13,7 @@ SRC_URI = " \ | |||
13 | https://curl.se/download/${BP}.tar.xz \ | 13 | https://curl.se/download/${BP}.tar.xz \ |
14 | file://run-ptest \ | 14 | file://run-ptest \ |
15 | file://disable-tests \ | 15 | file://disable-tests \ |
16 | file://no-test-timeout.patch \ | ||
16 | " | 17 | " |
17 | SRC_URI[sha256sum] = "3ccd55d91af9516539df80625f818c734dc6f2ecf9bada33c76765e99121db15" | 18 | SRC_URI[sha256sum] = "3ccd55d91af9516539df80625f818c734dc6f2ecf9bada33c76765e99121db15" |
18 | 19 | ||