[libnet-mac-vendor-perl] 06/09: Refresh no-network-tests.patch.

gregor herrmann gregoa at debian.org
Sat Oct 18 20:13:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libnet-mac-vendor-perl.

commit e78271d8508159aca5d48ddb32ea19cb24c407f0
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat Oct 18 22:00:33 2014 +0200

    Refresh no-network-tests.patch.
---
 debian/patches/no-network-tests.patch | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

diff --git a/debian/patches/no-network-tests.patch b/debian/patches/no-network-tests.patch
index 84c23af..a900c96 100644
--- a/debian/patches/no-network-tests.patch
+++ b/debian/patches/no-network-tests.patch
@@ -1,7 +1,8 @@
 Description: skip tests that need internet access, if NO_NETWORK is set
-Author: Nuno Carvalho <smash at cpan.org>
 Forwarded: not-needed
-Last-Update: 2013-10-08
+Author: Nuno Carvalho <smash at cpan.org>
+Reviewed-by: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-10-18
 
 --- a/t/fetch_oui_from_ieee.t
 +++ b/t/fetch_oui_from_ieee.t
@@ -55,24 +56,14 @@ Last-Update: 2013-10-08
  
 --- a/t/rt79369.t
 +++ b/t/rt79369.t
-@@ -11,10 +11,14 @@
- my $private_mac = '00-00-6C';
+@@ -12,6 +12,7 @@
  
  subtest html => sub {
--	my $array = Net::MAC::Vendor::lookup( $private_mac );
--	isa_ok( $array, ref [], "Got back array reference" );
-+      SKIP: {
-+        skip 'Tests require internet', 2 if $ENV{NO_NETWORK};
- 
--	is( $array->[0], 'PRIVATE', 'This is a private entry' );
-+	    my $array = Net::MAC::Vendor::lookup( $private_mac );
-+	    isa_ok( $array, ref [], "Got back array reference" );
-+
-+	    is( $array->[0], 'PRIVATE', 'This is a private entry' );
-+      }
- 	};
+ 	SKIP: {
++ 		skip 'Tests require internet', 2 if $ENV{NO_NETWORK};
+ 		my $array = Net::MAC::Vendor::lookup( $private_mac );
+ 		skip 'Could not fetch MAC data', 2 unless defined $array;
  
- subtest local_cache => sub {
 --- a/t/run.t
 +++ b/t/run.t
 @@ -6,7 +6,9 @@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-mac-vendor-perl.git



More information about the Pkg-perl-cvs-commits mailing list