diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2023-04-10 15:57:31 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2023-04-11 14:55:32 -0700 |
commit | def8dc80715506dd2e236582a3b06a02bf58c951 (patch) | |
tree | 7c7daf100a3db4085d1f4c90db7793823eed5e3e /tests | |
parent | a3605d6a5673e5dc11657e6267efc340965f5bf4 (diff) | |
download | curl-def8dc80715506dd2e236582a3b06a02bf58c951.tar.gz |
runtests: eliminate unneeded variable
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index dbf5d6b2f..dcd25f62f 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") { |