From def8dc80715506dd2e236582a3b06a02bf58c951 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Mon, 10 Apr 2023 15:57:31 -0700 Subject: [PATCH] runtests: eliminate unneeded variable --- tests/runtests.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/runtests.pl b/tests/runtests.pl index dbf5d6b2f6..dcd25f62f1 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -101,7 +101,6 @@ use globalconfig; my $CLIENTIP="127.0.0.1"; # address which curl uses for incoming connections my $CLIENT6IP="[::1]"; # address which curl uses for incoming connections -my $use_external_proxy = 0; my %custom_skip_reasons; my $CURLVERSION=""; # curl's reported version number @@ -1574,7 +1573,7 @@ sub singletest_setenv { } } } - if($use_external_proxy) { + if($proxy_address) { $ENV{http_proxy} = $proxy_address; $ENV{HTTPS_PROXY} = $proxy_address; } @@ -1795,7 +1794,7 @@ sub singletest_run { $fail_due_event_based--; } $cmdargs .= $cmd; - if ($use_external_proxy) { + if ($proxy_address) { $cmdargs .= " --proxy $proxy_address "; } } @@ -2950,7 +2949,6 @@ while(@ARGV) { } elsif($ARGV[0] eq "-P") { shift @ARGV; - $use_external_proxy=1; $proxy_address=$ARGV[0]; } elsif($ARGV[0] eq "-L") {