]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runner.pm: set `CURL_TESTNUM` for `precheck` commands
authorViktor Szakats <commit@vsz.me>
Sat, 16 May 2026 01:38:19 +0000 (03:38 +0200)
committerViktor Szakats <commit@vsz.me>
Sat, 16 May 2026 09:55:59 +0000 (11:55 +0200)
Closes #21640

tests/runner.pm

index 8ebb855ca6350aec75ea3d5b4a8ebf03896b6f80..115d078a1ff37974295c34975e5b03c305e716c1 100644 (file)
@@ -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];