]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: eliminate unneeded variable
authorDan Fandrich <dan@coneharvesters.com>
Mon, 10 Apr 2023 22:57:31 +0000 (15:57 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 11 Apr 2023 21:55:32 +0000 (14:55 -0700)
tests/runtests.pl

index dbf5d6b2f6d5eff7aed83c3a23f003836d463b18..dcd25f62f137c93d2bb4f003b01a67bfe77628f4 100755 (executable)
@@ -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") {