From: Fabian Keil Date: Sun, 13 Dec 2020 06:28:20 +0000 (+0100) Subject: privoxy-regression-test: Consistently use '$privoxy_cgi_url' X-Git-Tag: v_3_0_30~270^2~21 X-Git-Url: http://www.privoxy.org/gitweb/telemarketing.html?a=commitdiff_plain;h=932a2f2791bec30ca40faf35b16e80da6585bc37;p=privoxy.git privoxy-regression-test: Consistently use '$privoxy_cgi_url' --- diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl index c00ea3c1..4288e46d 100755 --- a/tools/privoxy-regression-test.pl +++ b/tools/privoxy-regression-test.pl @@ -895,6 +895,8 @@ sub register_dependency($$) { sub execute_method_test($) { my $test = shift; + our $privoxy_cgi_url; + my $buffer_ref; my $status_code; my $method = $test->{'data'}; @@ -906,7 +908,7 @@ sub execute_method_test($) { # Don't complain about the 'missing' body $curl_parameters .= '--head ' if ($method =~ /^HEAD$/i); - $curl_parameters .= PRIVOXY_CGI_URL; + $curl_parameters .= $privoxy_cgi_url; $buffer_ref = get_page_with_curl($curl_parameters); $status_code = get_status_code($buffer_ref); @@ -962,6 +964,8 @@ sub execute_redirect_test($) { sub execute_dumb_fetch_test($) { my $test = shift; + our $privoxy_cgi_url; + my $buffer_ref; my $status_code; @@ -972,7 +976,7 @@ sub execute_dumb_fetch_test($) { $curl_parameters .= '--request ' . quote($test->{method}) . ' '; } if ($test->{type} == TRUSTED_CGI_REQUEST) { - $curl_parameters .= '--referer ' . quote(PRIVOXY_CGI_URL) . ' '; + $curl_parameters .= '--referer ' . quote($privoxy_cgi_url) . ' '; } $curl_parameters .= quote($test->{'data'}); @@ -1026,6 +1030,8 @@ sub execute_sticky_actions_test($) { sub get_final_results($) { my $url = shift; + our $privoxy_cgi_url; + my $curl_parameters = ''; my %final_results = (); my $final_results_reached = 0; @@ -1038,7 +1044,7 @@ sub get_final_results($) { $url =~ s@:@%3A@g; $url =~ s@/@%2F@g; - $curl_parameters .= quote(PRIVOXY_CGI_URL . 'show-url-info?url=' . $url); + $curl_parameters .= quote($privoxy_cgi_url . 'show-url-info?url=' . $url); foreach (@{get_cgi_page_or_else($curl_parameters)}) {