[SCM] Debian packaging of libgeo-osm-tiles-perl branch, master, updated. dd9cbac5c81c4f18636605ab27fb53fb9bbd452f

gregor herrmann gregoa at debian.org
Tue Jun 5 19:40:28 UTC 2012


The following commit has been merged in the master branch:
commit 9750e17f6c137262f6b7ad48cca1e2f517419292
Author: gregor herrmann <gregoa at debian.org>
Date:   Tue Jun 5 21:32:11 2012 +0200

    Add patch to skip test that needs internet access.
    
    Closes: #676072

diff --git a/debian/patches/no-internet-tests.patch b/debian/patches/no-internet-tests.patch
new file mode 100644
index 0000000..8f84ada
--- /dev/null
+++ b/debian/patches/no-internet-tests.patch
@@ -0,0 +1,20 @@
+Description: completely skip tests unless HAS_INTERNET is et
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2012-06-05
+
+--- a/t/20-downloadosmtiles.t
++++ b/t/20-downloadosmtiles.t
+@@ -4,6 +4,11 @@
+ use warnings;
+ use Test::More;
+ 
++unless ($ENV{HAS_INTERNET}) {
++    plan skip_all => 'Set HAS_INTERNET 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;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..29b14c5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no-internet-tests.patch

-- 
Debian packaging of libgeo-osm-tiles-perl



More information about the Pkg-perl-cvs-commits mailing list