From 40c516f941ed87116f5023885da0e4d070580907 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 16 May 2026 03:38:19 +0200 Subject: [PATCH] runner.pm: set `CURL_TESTNUM` for `precheck` commands Closes #21640 --- tests/runner.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/runner.pm b/tests/runner.pm index 8ebb855ca6..115d078a1f 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -709,6 +709,9 @@ sub singletest_precheck { $cmd = join(" ", @p); } + # provide an environment variable + $ENV{'CURL_TESTNUM'} = $testnum; + my @o = `$cmd 2> $LOGDIR/precheck-$testnum`; if($o[0]) { $why = $o[0];