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

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

commit c6ae4c6003c8e76bd9e00d31356ba7472a6f830d
Author: gregor herrmann <gre...@debian.org>
Date:   Thu Aug 13 18:00:32 2015 +0200

    change environment variable for disabling network tests
    
    Gbp-Dch: Ignore
---
 debian/patches/no_internet.patch | 8 ++++----
 debian/rules                     | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/patches/no_internet.patch b/debian/patches/no_internet.patch
index e816b28..6f8184f 100644
--- a/debian/patches/no_internet.patch
+++ b/debian/patches/no_internet.patch
@@ -1,4 +1,4 @@
-Description: Don't run tests that need internet access (or a physical CD-Rom) 
unless HAVE_INTERNET is set
+Description: Don't run tests that need internet access (or a physical CD-Rom) 
if NO_NETWORK is set
 Origin: vendor
 Bug-Debian: http://bugs.debian.org/625840
 Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=94988
@@ -12,7 +12,7 @@ Last-Update: 2011-05-09
  use Test;
  use Data::Dumper;
 -BEGIN { plan tests => 10 };
-+BEGIN { plan tests => ( $ENV{HAVE_INTERNET} ? 10 : 1) };
++BEGIN { plan tests => ( $ENV{NO_NETWORK} ? 1 : 10) };
  use Net::FreeDB;
  ok(1); # If we made it this far, we're ok.
  
@@ -20,7 +20,7 @@ Last-Update: 2011-05-09
  # Insert your test code below, the Test module is use()ed here so read
  # its man page ( perldoc Test ) for help writing this test script.
  
-+if ( $ENV{HAVE_INTERNET} ) {
++unless ( $ENV{NO_NETWORK} ) {
 +
  #########################
  ok($cddb = new Net::FreeDB('USER' => 'win32usr'));
@@ -30,4 +30,4 @@ Last-Update: 2011-05-09
  
  ok($id->{NUM_TRKS});
 +
-+} # end HAVE_INTERNET
++} # end NO_NETWORK
diff --git a/debian/rules b/debian/rules
index 4116432..a13b228 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,6 @@
 
 override_dh_auto_test:
        # tests fail without internet access
-       # set HAVE_INTERNET to 1 for manual builds
+       # set NO_NETWORK to 0 for manual builds
        # (and put a CD-RON into /dev/cdrom for the second part of the test 
suite)
-       HAVE_INTERNET=0 dh_auto_test
+       NO_NETWORK=1 dh_auto_test

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to