From 58cb1e2f1fa8d8f1c71596918707e566c6353cb2 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 18 Aug 2026 12:28:05 +0200 Subject: [PATCH] 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 3f1cd809eeae05f39fec72fe780f3a69d21972fb #19942 Closes #22618 --- tests/runtests.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index 4b5b5b0826..e4b7c10053 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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 #