mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:33:41 +03:00
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:
parent
64ea25cfe6
commit
58cb1e2f1f
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue