[libbot-basicbot-pluggable-perl] 01/01: change environment variable for disabling network tests

gregor herrmann gregoa at debian.org
Thu Aug 13 15:43:35 UTC 2015


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

gregoa pushed a commit to branch master
in repository libbot-basicbot-pluggable-perl.

commit 91cdb5a673e7048318ee19b353312b3f34adb47f
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 13 17:43:22 2015 +0200

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

diff --git a/debian/patches/no_internet.patch b/debian/patches/no_internet.patch
index 11040a3..673f0e9 100644
--- a/debian/patches/no_internet.patch
+++ b/debian/patches/no_internet.patch
@@ -12,7 +12,7 @@ Last-Update: 2013-10-29
  
 +SKIP: {
 +
-+skip "Debian build systems do not have internet access", 1 unless $ENV{CONNECTED_TO_NET};
++skip "Debian build systems do not have internet access", 1 if $ENV{NO_NETWORK};
 +
  like( $bot->tell_direct("http://google.com"),
      qr/Google/, "got title of google ok" );
@@ -25,7 +25,7 @@ Last-Update: 2013-10-29
 +
 +SKIP: {
 +
-+skip "Debian build systems do not have internet access", 2 unless $ENV{CONNECTED_TO_NET};
++skip "Debian build systems do not have internet access", 2 if $ENV{NO_NETWORK};
 +
 +my $t = $bot->tell_direct("google is at http:/google.com");
  like( $t, qr/Google/, "got title of google ok" );
diff --git a/debian/rules b/debian/rules
index ff7bd9c..f0b87a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,8 +8,8 @@ TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 override_dh_auto_test:
 	#Since debian build systems do not have internet accessuse, we need to avoid all the tests that needs it
-	#use CONNECTED_TO_NET=1 when the build host does have internet access.
-	CONNECTED_TO_NET=0 dh_auto_test
+	#use NO_NETWORK=0 when the build host does have internet access.
+	NO_NETWORK=1 dh_auto_test
 
 override_dh_auto_install:
 	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libbot-basicbot-pluggable-perl.git



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