summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2023-04-10 15:57:31 -0700
committerDan Fandrich <dan@coneharvesters.com>2023-04-11 14:55:32 -0700
commitdef8dc80715506dd2e236582a3b06a02bf58c951 (patch)
tree7c7daf100a3db4085d1f4c90db7793823eed5e3e /tests
parenta3605d6a5673e5dc11657e6267efc340965f5bf4 (diff)
downloadcurl-def8dc80715506dd2e236582a3b06a02bf58c951.tar.gz
runtests: eliminate unneeded variable
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl6
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") {