This is an automated email from the git hooks/post-receive script. gregoa pushed a commit to branch master in repository libhttp-proxy-perl.
commit d4728472c9a6a9e82af75cacab0d159bf983a6c2 Author: gregor herrmann <gre...@debian.org> Date: Sat Jul 16 21:28:52 2016 +0200 Explicitly disable tests which need network access. Thanks: Chris Lamb for the bug report. Closes: #830354 --- debian/patches/no-network.patch | 17 +++++++++++++++++ debian/patches/series | 1 + debian/rules | 3 +++ debian/tests/pkg-perl/smoke-env | 1 + 4 files changed, 22 insertions(+) diff --git a/debian/patches/no-network.patch b/debian/patches/no-network.patch new file mode 100644 index 0000000..9d7dd5d --- /dev/null +++ b/debian/patches/no-network.patch @@ -0,0 +1,17 @@ +Description: don't try to connect to network when NO_NETWORK is set +Origin: vendor +Bug-Debian: https://bugs.debian.org/830354 +Forwarded: not-needed +Author: gregor herrmann <gre...@debian.org> +Last-Update: 2016-07-16 + +--- a/t/Utils.pm ++++ b/t/Utils.pm +@@ -80,6 +80,7 @@ + + # check that the web connection is working + sub web_ok { ++ return 0 if $ENV{NO_NETWORK}; + my $ua = LWP::UserAgent->new( env_proxy => 1, timeout => 30 ); + my $res = + $ua->request( diff --git a/debian/patches/series b/debian/patches/series index 074a955..5f6665b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ hashbang.patch 0001-Work-around-LWP-UserAgent-Net-HTTP-buffering.patch +no-network.patch diff --git a/debian/rules b/debian/rules index 2d33f6a..f0268bc 100755 --- a/debian/rules +++ b/debian/rules @@ -2,3 +2,6 @@ %: dh $@ + +override_dh_auto_test: + http_proxy= NO_NETWORK=1 dh_auto_test diff --git a/debian/tests/pkg-perl/smoke-env b/debian/tests/pkg-perl/smoke-env new file mode 100644 index 0000000..6d5ee6a --- /dev/null +++ b/debian/tests/pkg-perl/smoke-env @@ -0,0 +1 @@ +NO_NETWORK=1 -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhttp-proxy-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