[libhtml-formfu-perl] 10/12: Resurrect no-network.patch and override in debian/rules
gregor herrmann
gregoa at debian.org
Sat Oct 29 19:37:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libhtml-formfu-perl.
commit 3b3fc3ac50a9bdfebff939819623db26ecffddf0
Author: gregor herrmann <gregoa at debian.org>
Date: Sat Oct 29 21:23:42 2016 +0200
Resurrect no-network.patch and override in debian/rules
with new test filename.
---
debian/patches/no-network.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 3 +++
3 files changed, 31 insertions(+)
diff --git a/debian/patches/no-network.patch b/debian/patches/no-network.patch
new file mode 100644
index 0000000..0ebb9b3
--- /dev/null
+++ b/debian/patches/no-network.patch
@@ -0,0 +1,27 @@
+Description: skip tests which need network access
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2016-10-29
+
+--- a/t/constraints/email.t
++++ b/t/constraints/email.t
+@@ -36,6 +36,9 @@
+
+ }
+
++SKIP: {
++ skip "Unset NO_NETWORK to run this test.", 3 if $ENV{NO_NETWORK};
++
+ {
+
+ my $form = HTML::FormFu->new;
+@@ -87,6 +90,8 @@
+
+ }
+
++} # end SKIP
++
+ {
+
+ my $form = HTML::FormFu->new;
diff --git a/debian/patches/series b/debian/patches/series
index e662b42..1a30c7d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
how-to-report-bugs.diff
+no-network.patch
diff --git a/debian/rules b/debian/rules
index 7d7ae4a..1887fc8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@ MANDIR=$(CURDIR)/debian/libhtml-formfu-perl/usr/share/man/man3
%:
dh $@
+override_dh_auto_test:
+ 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/libhtml-formfu-perl.git
More information about the Pkg-perl-cvs-commits
mailing list