Skip to content

Commit

Permalink
AUTOMATED testing no longer always turns off remote testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Horne committed Sep 28, 2020
1 parent 9d8c877 commit aab880d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ WriteMakefile(

sub are_online
{
return 0 if($ENV{'AUTOMATED_TESTING'});
return 0 if($ENV{'NO_NETWORK_TESTING'});
return 0 if(!-t STDIN);
my $s = IO::Socket::INET->new(
Expand All @@ -116,7 +115,7 @@ sub are_online
Timeout => 5
);
if($s) {
if($ENV{'PERL_MM_USE_DEFAULT'}) {
if($ENV{'PERL_MM_USE_DEFAULT'} || $ENV{'AUTOMATED_TESTING'}) {
close($s);
return 1;
}
Expand Down

0 comments on commit aab880d

Please sign in to comment.