diff options
author | John Lightsey <lightsey@debian.org> | 2019-11-14 19:46:19 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2019-11-14 19:46:19 +0100 |
commit | d5212d0a9c9a8eb4422d1d18be44ac4f91080db4 (patch) | |
tree | c1e9b7de76eb318f60f562743205c947160b8f88 | |
parent | f09f7d1806ccbc75550c070f8ed60b9bbc2bc911 (diff) |
Add check of environmental variable to disable all networkarchive/debian/1.29-1
Origin: vendor
Forwarded: not-needed
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-07-14
tests during the build process.
Gbp-Pq: Name disable_network_tests.patch
-rw-r--r-- | t/testload.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/testload.pm b/t/testload.pm index 552429a..b4a7932 100644 --- a/t/testload.pm +++ b/t/testload.pm @@ -87,6 +87,10 @@ my $Network_Up; sub network_ok { if (! defined $Network_Up) { my %ua_parms; + if ($ENV{NO_NETWORK}) { + $Network_Up = 0; + return $Network_Up; + } if ($ENV{http_proxy}) { $ua_parms{env_proxy} = 1; } |