Skip to content

Commit

Permalink
Don't do online testing when smoking
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Sep 4, 2024
1 parent 56c9a52 commit 17efc9a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,13 @@ WriteMakefile(

sub are_online
{
return 0 if($ENV{'NO_NETWORK_TESTING'} || $ENV{'TRAVIS_PERL_VERSION'});
return 0 if(!-t STDIN);
return 0 if($ENV{'NO_NETWORK_TESTING'} || $ENV{'TRAVIS_PERL_VERSION'}) || $ENV{'AUTOMATED_TESTING'} || (!-t STDIN);

my $s = IO::Socket::INET->new(
if(my $s = IO::Socket::INET->new(
PeerAddr => 'openstreetmap.org:443',
Timeout => 10
);
if($s) {
if($ENV{'PERL_MM_USE_DEFAULT'} || $ENV{'AUTOMATED_TESTING'}) {
)) {
if($ENV{'PERL_MM_USE_DEFAULT'}) {
close($s);
return 0;
}
Expand Down

0 comments on commit 17efc9a

Please sign in to comment.