mirror of
https://github.com/curl/curl.git
synced 2026-07-31 10:58:04 +03:00
runtests: add -m=seconds to override test curl command timeout
To override the curl default of 5 minutes (300000 ms). Sometimes a simple test data change can result in a stuck test, this option makes it exit with an error early. Possible future use in CI or fast machines to prevent a single test taking 5 minutes and failing the whole job. Example hangers: tests/data/test65: ```diff -<data1000 crlf="yes"> +<data1000 crlf="headers"> ``` tests/data/tests993: ```diff -%repeat[1000 x 95 328485%0d%0a]%</data> +%repeat[1000 x 95 328485%0d%0a]% +</data> ``` Closes #19319
This commit is contained in:
parent
991119051c
commit
2decbb1c1f
16 changed files with 26 additions and 1 deletions
|
|
@ -972,6 +972,9 @@ sub singletest_run {
|
|||
if((!$cmdhash{'option'}) || ($cmdhash{'option'} !~ /no-q/)) {
|
||||
$CMDLINE .= " -q";
|
||||
}
|
||||
if($maxtime) {
|
||||
$CMDLINE .= " --max-time $maxtime";
|
||||
}
|
||||
}
|
||||
|
||||
if(use_valgrind() && !$disablevalgrind) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue