[Privoxy-commits] [privoxy] 14/38: tests/cts: Make the TESTDIR available as environment variable so the prechecks can access it

User Git git at git.privoxy.org
Thu Apr 9 09:37:12 CEST 2026


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 012d0d549e160f8400c995c562c81aabb34ea7d3
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Apr 2 09:20:06 2026 +0200

    tests/cts: Make the TESTDIR available as environment variable so the prechecks can access it
---
 tests/cts/privoxy-runtests.pm | 3 +++
 tests/cts/runtests-wrapper.sh | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/cts/privoxy-runtests.pm b/tests/cts/privoxy-runtests.pm
index 44aa03c4..e6581a6e 100644
--- a/tests/cts/privoxy-runtests.pm
+++ b/tests/cts/privoxy-runtests.pm
@@ -218,6 +218,9 @@ sub main() {
         $verbose = 1 if ($arg eq "-v");
     }
 
+    # Export TESTDIR so the prechecks can access it.
+    $ENV{TESTDIR} = $TESTDIR;
+
     return 1;
 }
 
diff --git a/tests/cts/runtests-wrapper.sh b/tests/cts/runtests-wrapper.sh
index ab861c44..7644215f 100755
--- a/tests/cts/runtests-wrapper.sh
+++ b/tests/cts/runtests-wrapper.sh
@@ -119,8 +119,9 @@ runtests_wrapper() {
     
     cd "${curl_source_directory}/tests" || exit 1
     ./runtests.pl -c "${curl_source_directory}/src/curl" \
+                  $testdir_args \
                   -L "${privoxy_lib}" \
-                  $proxy_args $exclude_file_args $testdir_args $a_flag -n $keyword !skip $extra_args
+                  $proxy_args $exclude_file_args $a_flag -n $keyword !skip $extra_args
 }
 
 main() {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list