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

gregor herrmann gregoa at debian.org
Thu Aug 13 15:46:23 UTC 2015


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

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

commit 97196760559370eea95fd10c7f581f859bd2d9a3
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 13 17:46:12 2015 +0200

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

diff --git a/debian/patches/disable-internet-tests.t b/debian/patches/disable-internet-tests.t
index f1341dc..1d6aa88 100644
--- a/debian/patches/disable-internet-tests.t
+++ b/debian/patches/disable-internet-tests.t
@@ -18,8 +18,8 @@ Author: Jonathan Yu <frequency at cpan.org>
  	select(STDOUT); $|=1;
  };
  
-+unless ($ENV{HAS_INTERNET}) {
-+  plan skip_all => 'Set HAS_INTERNET to enable live tests';
++if ($ENV{NO_NETWORK}) {
++  plan skip_all => 'Unset NO_NETWORK to enable live tests';
 +}
 +
 +plan tests => 25;
diff --git a/debian/rules b/debian/rules
index 2d33f6a..3f91295 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,6 @@
 
 %:
 	dh $@
+
+override_dh_auto_test:
+	NO_NETWORK=1 dh_auto_test

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



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