mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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: d105cc0dae1fcca285c08f33df7888c68fb0dc2f) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit e2e9ec1bf97a7e36a05a247dbc671ecca584205f) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
parent
ba6ed3b831
commit
8a20101d14
18
meta/recipes-support/curl/curl/no-test-timeout.patch
Normal file
18
meta/recipes-support/curl/curl/no-test-timeout.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Set the max-time timeout to 600 so the timeout is 10 minutes instead of 13 seconds.
|
||||
|
||||
Upstream-Status: Inappropriate
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
diff --git a/tests/servers.pm b/tests/servers.pm
|
||||
index d4472d509..aeab62c47 100644
|
||||
--- a/tests/servers.pm
|
||||
+++ b/tests/servers.pm
|
||||
@@ -120,7 +120,7 @@ my $sshdverstr; # for socks server, ssh daemon version string
|
||||
my $sshderror; # for socks server, ssh daemon version error
|
||||
my %doesntrun; # servers that don't work, identified by pidfile
|
||||
my %PORT = (nolisten => 47); # port we use for a local non-listening service
|
||||
-my $server_response_maxtime=13;
|
||||
+my $server_response_maxtime=600;
|
||||
my $httptlssrv = find_httptlssrv();
|
||||
my %run; # running server
|
||||
my %runcert; # cert file currently in use by an ssl running server
|
|
@ -15,6 +15,7 @@ SRC_URI = " \
|
|||
file://disable-tests \
|
||||
file://CVE-2023-46218.patch \
|
||||
file://CVE-2023-46219.patch \
|
||||
file://no-test-timeout.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "16c62a9c4af0f703d28bda6d7bbf37ba47055ad3414d70dec63e2e6336f2a82d"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user