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
If the variable name has no assignment, no `=`, then that variable is just
deleted.
-### `<command [option="no-output/no-include/force-output/binary-trace"] [timeout="secs"][delay="secs"][type="perl/shell"]>`
+### `<command [option="no-q/no-output/no-include/force-output/binary-trace"] [timeout="secs"][delay="secs"][type="perl/shell"]>`
Command line to run.
Note that the URL that gets passed to the server actually controls what data
Set `option="no-include"` to prevent the test script to slap on the
`--include` argument.
+Set `option="no-q"` avoid using `-q` as the first argument in the curl command
+line.
+
Set `option="binary-trace"` to use `--trace` instead of `--trace-ascii` for
tracing. Suitable for binary-oriented protocols such as MQTT.
<name>
Verify XDG_CONFIG_HOME use to find .curlrc
</name>
-<command>
+<command option="no-q">
%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
<name>
Find .curlrc in .config/curlrc via CURL_HOME
</name>
-<command>
+<command option="no-q">
%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
if(!$tool) {
$CMDLINE=shell_quote($CURL);
+ if($cmdhash{'option'} !~ /no-q/) {
+ $CMDLINE .= " -q";
+ }
}
if(use_valgrind() && !$disablevalgrind) {