[libgeo-osm-tiles-perl] 01/01: change environment variable for disabling network tests

gregor herrmann gregoa at debian.org
Thu Aug 13 15:50:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libgeo-osm-tiles-perl.

commit 746beef19e1399c36243bfa8ad5cede8b1876718
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 13 17:50:39 2015 +0200

    change environment variable for disabling network tests
    
    Gbp-Dch: Ignore
---
 debian/patches/no-internet-tests.patch | 6 +++---
 debian/rules                           | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/patches/no-internet-tests.patch b/debian/patches/no-internet-tests.patch
index 8f84ada..0cbcd12 100644
--- a/debian/patches/no-internet-tests.patch
+++ b/debian/patches/no-internet-tests.patch
@@ -1,4 +1,4 @@
-Description: completely skip tests unless HAS_INTERNET is et
+Description: completely skip tests if NO_NETWORK is set
 Origin: vendor
 Forwarded: not-needed
 Author: gregor herrmann <gregoa at debian.org>
@@ -10,8 +10,8 @@ Last-Update: 2012-06-05
  use warnings;
  use Test::More;
  
-+unless ($ENV{HAS_INTERNET}) {
-+    plan skip_all => 'Set HAS_INTERNET to enable tests requiring Internet';
++if ($ENV{NO_NETWORK}) {
++    plan skip_all => 'Unset NO_NETWORK to enable tests requiring Internet';
 +}
 +
 +
diff --git a/debian/rules b/debian/rules
index c7d7cd4..e50fd5a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@ TMP     = $(CURDIR)/debian/$(PACKAGE)
 	dh $@
 
 override_dh_auto_test:
-	http_proxy= dh_auto_test
+	http_proxy= NO_NETWORK=1 dh_auto_test
 
 override_dh_auto_install:
 	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libgeo-osm-tiles-perl.git



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