From c8688eeeb5dbca52028718469e61a8558ce95829 Mon Sep 17 00:00:00 2001
From: Roland Rosenfeld <roland@debian.org>
Date: Fri, 17 Jan 2025 20:29:53 +0100
Subject: [PATCH] tests/cts/runtests-wrapper: make curl_source_directory
 configurable

by setting CURL_SOURCE_DIRECTORY environment variable.
---
 tests/cts/runtests-wrapper.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/cts/runtests-wrapper.sh b/tests/cts/runtests-wrapper.sh
index e56a408f..851175f8 100755
--- a/tests/cts/runtests-wrapper.sh
+++ b/tests/cts/runtests-wrapper.sh
@@ -52,7 +52,7 @@ runtests_wrapper() {
     test_dir="$(realpath "${directory_name}")"
     privoxy_source_directory="$(realpath "${test_dir}"/../..)"
     privoxy_lib="${privoxy_source_directory}/tests/cts/privoxy-runtests.pm"
-    curl_source_directory="$(realpath "${privoxy_source_directory}"/../curl)"
+    curl_source_directory=${CURL_SOURCE_DIRECTORY:-"$(realpath "${privoxy_source_directory}"/../curl)"}
 
     curl_setup_is_sane "${curl_source_directory}" || exit 1
 
-- 
2.49.0