[libwww-search-perl] 01/01: change environment variable for disabling network tests
gregor herrmann
gregoa at debian.org
Thu Aug 13 16:27:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libwww-search-perl.
commit 100b05592643a57cabd6a11ff0cd2632c227c9bd
Author: gregor herrmann <gregoa at debian.org>
Date: Thu Aug 13 18:27:31 2015 +0200
change environment variable for disabling network tests
Gbp-Dch: Ignore
---
debian/components/test | 2 +-
debian/patches/pagesjeunes.patch | 2 +-
debian/rules | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/debian/components/test b/debian/components/test
index 2d01c81..0a2ac9e 100755
--- a/debian/components/test
+++ b/debian/components/test
@@ -20,7 +20,7 @@ then
exit 1
fi
-if [ -z ${TEST_NETWORK} ]
+if [ -n ${NO_NETWORK} ]
then
echo "no network; not testing"
exit 0
diff --git a/debian/patches/pagesjeunes.patch b/debian/patches/pagesjeunes.patch
index 5bcba40..ab68938 100644
--- a/debian/patches/pagesjeunes.patch
+++ b/debian/patches/pagesjeunes.patch
@@ -15,7 +15,7 @@ Forwarded: no
$pj->{ua}->agent("test".time);
-+if ($ENV{TEST_NETWORK}) {
++unless ($ENV{NO_NETWORK}) {
+ plan tests => 5;
+}
+else {
diff --git a/debian/rules b/debian/rules
index 1b073fd..31fa973 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,7 +11,7 @@ override_dh_auto_install:
sed -i -e'1s/#!\/usr\/local\/bin\/perl/#/' $(TMP)/usr/share/perl5/WWW/Search/*.pm
override_dh_auto_test:
- PERL5LIB=blib/lib PATH=blib/script:${PATH} dh_auto_test
+ NO_NETWORK=1 PERL5LIB=blib/lib PATH=blib/script:${PATH} dh_auto_test
override_dh_components:
dh_components
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libwww-search-perl.git
More information about the Pkg-perl-cvs-commits
mailing list