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

gregoa pushed a commit to branch master
in repository liblwp-useragent-progressbar-perl.

commit 71027ed49a838e2e9f1d18d23fba7edf1345d564
Author: gregor herrmann <gre...@debian.org>
Date:   Sun Nov 15 17:00:51 2015 +0100

    add patch (and override in d/rules) to skip network tests
    
    otherwise we get a test failure/FTBFS without internet access
    
    Gbp-Dch: Ignore
---
 debian/patches/no_network.patch | 19 +++++++++++++++++++
 debian/patches/series           |  1 +
 debian/rules                    |  3 +++
 3 files changed, 23 insertions(+)

diff --git a/debian/patches/no_network.patch b/debian/patches/no_network.patch
new file mode 100644
index 0000000..cbc6f31
--- /dev/null
+++ b/debian/patches/no_network.patch
@@ -0,0 +1,19 @@
+Description: skip tests which need internet access
+ if NO_NETWORK is set
+Origin: vendor
+Forwarded: not needed
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2015-11-15
+
+--- a/t/01_misc.t
++++ b/t/01_misc.t
+@@ -23,7 +23,9 @@
+ }
+ 
+ # post
++SKIP:
+ {
++    skip 'Tests require internet', 2 if $ENV{NO_NETWORK};
+     my $self_url = 'http://search.cpan.org/search';
+     my $response = LWP::UserAgent::ProgressBar->new->post_with_progress(
+         $self_url,
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..389f05e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no_network.patch
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/liblwp-useragent-progressbar-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to