Package: libpoe-perl / 2:1.3670-1

honour_no_network_option.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Subject: so that the network tests are only ran if networking is up
(debian/rules has the other half)
Reviewed-by: Nicholas Bamber <nicholas@periapt.co.uk>
Last-Update: 2011-02-11
Forwarded: not-needed
Author: Rene Mayorga <rmayorga@debian.org.sv>
--- a/t/90_regression/agaran-filter-httpd.t
+++ b/t/90_regression/agaran-filter-httpd.t
@@ -5,6 +5,10 @@
 use strict;
 
 BEGIN {
+  unless (-f 'run_network_tests') {
+	  print "1..0 # skip - Network access (and permission) required to run this test\n";
+	  exit;
+  }
   eval "use HTTP::Request";
   if ($@) {
     print "1..0 # skip - HTTP::Request needed to test POE::Filter::HTTPD\n";
--- a/t/10_units/01_pod/03_pod_no404s.t
+++ b/t/10_units/01_pod/03_pod_no404s.t
@@ -11,8 +11,8 @@
     plan skip_all => 'Need network access (and permission) for these tests';
   }
 
-  unless ( $ENV{RELEASE_TESTING} ) {
-    plan skip_all => 'enable by setting RELEASE_TESTING';
+  unless ( $ENV{INTERNET_TESTING} ) {
+    plan skip_all => 'enable by setting INTERNET_TESTING';
   }
 
   foreach my $req (qw(Test::Pod::No404s)) {