Description: completely skip tests if NO_NETWORK is set Origin: vendor Forwarded: not-needed Author: gregor herrmann Last-Update: 2012-06-05 --- a/t/20-downloadosmtiles.t +++ b/t/20-downloadosmtiles.t @@ -4,6 +4,11 @@ use warnings; use Test::More; +if ($ENV{NO_NETWORK}) { + plan skip_all => 'Unset NO_NETWORK to enable tests requiring Internet'; +} + + # Check whether we can reach the tile server first. Otherwise it # makes no sense to try testing the script. use LWP::UserAgent;