Skip to content
Snippets Groups Projects
Commit d4728472 authored by gregor herrmann's avatar gregor herrmann
Browse files

Explicitly disable tests which need network access.

Thanks: Chris Lamb for the bug report.
Closes: #830354
parent c2f985eb
No related branches found
No related tags found
No related merge requests found
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 <gregoa@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(
hashbang.patch
0001-Work-around-LWP-UserAgent-Net-HTTP-buffering.patch
no-network.patch
......@@ -2,3 +2,6 @@
%:
dh $@
override_dh_auto_test:
http_proxy= NO_NETWORK=1 dh_auto_test
NO_NETWORK=1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment