From 74a2828279ddbb2b58868c675ee6c73a2daad0ef Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 15 Dec 2025 23:26:34 +0100 Subject: [PATCH] runtests: log the required minimum number of tests in CI For Test Clutch. If set (via env or tflags), include the minimum number of tests required in runtests' log output: ``` * Min tests: 1750 ``` Follow-up to 3f1cd809eeae05f39fec72fe780f3a69d21972fb #19942 Closes #19987 --- tests/runtests.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index babec70858..24fd3516dc 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -885,6 +885,9 @@ sub checksystemfeatures { if(system("diff $TESTDIR/DISABLED $TESTDIR/DISABLED 2>$dev_null") != 0) { logmsg "* diff: missing\n"; } + if($mintotal) { + logmsg "* Min tests: $mintotal\n"; + } } ####################################################################### @@ -2711,6 +2714,10 @@ if(!$jobs) { setlogfunc(\&logmsg); } +if(!$mintotal && $ENV{"CURL_TEST_MIN"}) { + $mintotal = $ENV{"CURL_TEST_MIN"}; +} + ####################################################################### # Output curl version and host info being tested # @@ -3332,9 +3339,6 @@ else { } } -if(!$mintotal && $ENV{"CURL_TEST_MIN"}) { - $mintotal = $ENV{"CURL_TEST_MIN"}; -} if($mintotal) { if($total < $mintotal) { logmsg "TESTFAIL: number of tests run was below the minimum of: $mintotal\n"; -- 2.47.3