runtests: allow resetting CURL_TEST_MIN via --min=0

Set the default to `CURL_TEST_MIN` if set, first. Then process the
command-line options to override it. Previously, the env took over if
the command-line explicitly tried to set it to zero.

Ref: #22617

Follow-up to 3f1cd809ee #19942

Closes #22618
This commit is contained in:
Viktor Szakats 2026-08-18 12:28:05 +02:00
parent 64ea25cfe6
commit 58cb1e2f1f
No known key found for this signature in database

View file

@ -2346,6 +2346,10 @@ if(@ARGV && $ARGV[-1] eq '$TFLAGS') {
push(@ARGV, split(' ', $ENV{'TFLAGS'})) if defined($ENV{'TFLAGS'});
}
if($ENV{"CURL_TEST_MIN"}) {
$mintotal = $ENV{"CURL_TEST_MIN"};
}
$args = join(' ', @ARGV);
$valgrind = checktestcmd("valgrind");
@ -2747,10 +2751,6 @@ if(!$jobs) {
setlogfunc(\&logmsg);
}
if(!$mintotal && $ENV{"CURL_TEST_MIN"}) {
$mintotal = $ENV{"CURL_TEST_MIN"};
}
#######################################################################
# Output curl version and host info being tested
#