Debian Codegraph @

debian/patches/no-internet-tests.patch

raw
1 Description: completely skip tests if NO_NETWORK is set
2 Origin: vendor
3 Forwarded: not-needed
4 Author: gregor herrmann <[email protected]>
5 Last-Update: 2012-06-05
6
7 --- a/t/20-downloadosmtiles.t
8 +++ b/t/20-downloadosmtiles.t
9 @@ -4,6 +4,11 @@
10 use warnings;
11 use Test::More;
12
13 +if ($ENV{NO_NETWORK}) {
14 + plan skip_all => 'Unset NO_NETWORK to enable tests requiring Internet';
15 +}
16 +
17 +
18 # Check whether we can reach the tile server first. Otherwise it
19 # makes no sense to try testing the script.
20 use LWP::UserAgent;