runtests: eliminate unneeded variable

This commit is contained in:
Dan Fandrich 2023-04-10 15:57:31 -07:00
parent a3605d6a56
commit def8dc8071

View File

@ -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") {