tests: add -q as first option when invoking curl for tests

To reduce the risk that the user running the tests has a .curlrc present
that messes things up.

Support 'option="no-q"' for the <command> tag to switch it off on demand.
Use this new feature in test 433 and 436.

Ref: #13284
Closes #13387
This commit is contained in:
Daniel Stenberg 2024-04-16 14:18:55 +02:00
parent d28f74913c
commit f7cc9e9177
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 9 additions and 3 deletions

View file

@ -920,6 +920,9 @@ sub singletest_run {
if(!$tool) {
$CMDLINE=shell_quote($CURL);
if($cmdhash{'option'} !~ /no-q/) {
$CMDLINE .= " -q";
}
}
if(use_valgrind() && !$disablevalgrind) {