]> git.ipfire.org Git - thirdparty/curl.git/commit
runtests: add `-m=seconds` to override test curl command timeout
authorViktor Szakats <commit@vsz.me>
Sat, 1 Nov 2025 02:07:36 +0000 (03:07 +0100)
committerViktor Szakats <commit@vsz.me>
Wed, 19 Nov 2025 21:04:52 +0000 (22:04 +0100)
commit2decbb1c1f8a975425e2be5afebb3096b50de599
tree6f50fa6e9f3b598495833f389dc8b0d332a03639
parent991119051c2e54d2e9b6b002811f7f9da71c37eb
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
16 files changed:
docs/runtests.md
tests/data/test1400
tests/data/test1401
tests/data/test1402
tests/data/test1403
tests/data/test1404
tests/data/test1405
tests/data/test1406
tests/data/test1407
tests/data/test1420
tests/data/test1465
tests/data/test1481
tests/data/test285
tests/globalconfig.pm
tests/runner.pm
tests/runtests.pl