[libpoe-loop-event-perl] 01/02: debian/rules: move network check from override_dh_auto_test to override_dh_auto_configure

gregor herrmann gregoa at debian.org
Thu Feb 15 23:37:53 UTC 2018


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

gregoa pushed a commit to branch master
in repository libpoe-loop-event-perl.

commit de98fda56cb95860f7392f8d0c2b163c19ce210a
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Feb 16 00:36:45 2018 +0100

    debian/rules: move network check from override_dh_auto_test to override_dh_auto_configure
    
    in order to avoid issues with DEB_BUILD_OPTIONS=nocheck.
---
 debian/rules | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index c41725d..d8413ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,8 @@
 %:
 	dh $@
 
-override_dh_auto_test:
-	perl -MNet::Ping -e '(Net::Ping->new()->ping("127.0.0.1", 1)) ? \
+override_dh_auto_configure:
+	# Run network tests only if localhost is reachable, the perl snippet touch
+	# run_network_tests if the loopback interface is available.
+	$(PERL) -MNet::Ping -e '(Net::Ping->new()->ping("127.0.0.1", 1)) ? \
 		system("touch run_network_tests") : system("rm -rf run_network_tests");'
-	dh_auto_test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libpoe-loop-event-perl.git



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