[libwww-shorten-perl] 01/01: change environment variable for disabling network tests

gregor herrmann gregoa at debian.org
Thu Aug 13 16:29:28 UTC 2015


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

gregoa pushed a commit to branch master
in repository libwww-shorten-perl.

commit fccb919bb5176b892d8814af3b44252fc914dad7
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 13 18:29:20 2015 +0200

    change environment variable for disabling network tests
    
    Gbp-Dch: Ignore
---
 debian/patches/network_tests.patch | 2 +-
 debian/rules                       | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/patches/network_tests.patch b/debian/patches/network_tests.patch
index 19bcd89..cbebab3 100644
--- a/debian/patches/network_tests.patch
+++ b/debian/patches/network_tests.patch
@@ -11,7 +11,7 @@ Last-Update: 2014-09-17
  BEGIN { use_ok WWW::Shorten::TinyURL };
  
 +SKIP: {
-+    skip 'network testing turned off by default', 5 if not $ENV{NETWORK_TESTING};
++    skip 'network testing turned off by default', 5 if $ENV{NO_NETWORK};
 +
  my $url = 'https://metacpan.org/release/WWW-Shorten';
  my $return = makeashorterlink($url);
diff --git a/debian/rules b/debian/rules
index 0779986..8b0ab9d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@ TMP:=$(CURDIR)/debian/$(PKG)
 %:
 	dh $@
 
+override_dh_auto_test:
+	NO_NETWORK=1 dh_auto_test
+
 # Historically this package installed 'shorten'
 # as an example rather than a tool.
 # I see no compelling reason to change that

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libwww-shorten-perl.git



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