Description: Add check of environmental variable to disable all network
 tests during the build process.
Origin: vendor
Forwarded: not-needed
Author: John Lightsey <lightsey@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2016-07-14

--- a/t/testload.pm
+++ b/t/testload.pm
@@ -87,6 +87,10 @@
 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;
     }
