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

gregor herrmann gregoa at debian.org
Thu Aug 13 15:57:41 UTC 2015


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

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

commit d4a06fb434ef7d951fcca1f3736fcace00e4be1c
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 13 17:57:31 2015 +0200

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

diff --git a/debian/patches/disable-network-test.diff b/debian/patches/disable-network-test.diff
index 1a14672..47fdeb4 100644
--- a/debian/patches/disable-network-test.diff
+++ b/debian/patches/disable-network-test.diff
@@ -11,7 +11,7 @@ Last-Update: 2014-10-17
  use Test::More;
  use LWP::UserAgent;
  
-+plan skip_all => "set NETWORK_TESTING to enable this test" unless $ENV{NETWORK_TESTING};
++plan skip_all => "Unset NO_NETWORK to enable this test" if $ENV{NO_NETWORK};
 +
  sub get_url {
    my $url = shift;
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/libmediawiki-api-perl.git



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