[liblwp-protocol-https-perl] 04/10: disable internet with env var

dod at debian.org dod at debian.org
Fri Jul 14 17:26:01 UTC 2017


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

dod pushed a commit to branch master
in repository liblwp-protocol-https-perl.

commit 553988043da26bbb0051ad79422252b5c754bd3c
Author: Dominique Dumont <dod at debian.org>
Date:   Fri Jul 14 19:05:10 2017 +0200

    disable internet with env var
---
 debian/patches/disable-test-with-internet | 17 -----------------
 debian/patches/series                     |  1 -
 debian/rules                              |  4 ++++
 3 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/debian/patches/disable-test-with-internet b/debian/patches/disable-test-with-internet
deleted file mode 100644
index e115860..0000000
--- a/debian/patches/disable-test-with-internet
+++ /dev/null
@@ -1,17 +0,0 @@
-Description: disable-test-with-internet 
- disable test which tries to connect to apache.org
- even if this test use LWP::Online to test the 
- connection. Note that the test does not work
- behind a proxy without setting PERL_LWP_ENV_PROXY=1
-Author: dod
---- a/t/apache.t
-+++ b/t/apache.t
-@@ -6,6 +6,8 @@
- use LWP::UserAgent;
- 
- my $ua = LWP::UserAgent->new();
-+plan skip_all => "No internet available on Debian build systems";
-+exit;
- plan skip_all => "Not online" unless $ua->is_online;
- 
- plan tests => 5;
diff --git a/debian/patches/series b/debian/patches/series
index 96d2821..426cb76 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,3 @@
-disable-test-with-internet
 fix-redirect-proxy-ssl
 cert.patch
 746579-fix-peer-certificate-verification.patch
diff --git a/debian/rules b/debian/rules
index 2d33f6a..7ecb829 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,7 @@
 
 %:
 	dh $@
+
+override_dh_auto_test:
+	# used by Test::RequiresInternet
+	NO_NETWORK_TESTING=1 dh_auto_test

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



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