[get-flash-videos] 01/04: add patch disabling network tests when NO_NETWORK is present in the environment
Damyan Ivanov
dmn at moszumanska.debian.org
Wed Jan 29 19:26:42 UTC 2014
This is an automated email from the git hooks/post-receive script.
dmn pushed a commit to branch master
in repository get-flash-videos.
commit c0c0643efee2dbe67c672a09bb4e4343079d1002
Author: Damyan Ivanov <dmn at debian.org>
Date: Wed Jan 29 18:54:04 2014 +0000
add patch disabling network tests when NO_NETWORK is present in the environment
Closes: #713378 -- FTBFS
---
debian/patches/no-network-tests.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 23 insertions(+)
diff --git a/debian/patches/no-network-tests.patch b/debian/patches/no-network-tests.patch
new file mode 100644
index 0000000..1627afb
--- /dev/null
+++ b/debian/patches/no-network-tests.patch
@@ -0,0 +1,22 @@
+Description: Skip tests when NO_NETWORK is found in the environment
+ This patch is inspired by the failures during automated builds of Debian
+ packages, but may be useful also for CPAN auto-builders, in which case
+ s/NO_NETWORK/AUTOMATED_TESTING/ is in order. Debian autobuilders run with
+ networking disabled. Skipping tests that connect to remote hosts can be good
+ for the privacy of the CPAN autobuilders too.
+Bug-Debian: http://bugs.debian.org/713378
+Author: Damyan Ivanov <dmn at debian.org>
+Forwarded: pending
+
+--- a/t/google_video_search.t
++++ b/t/google_video_search.t
+@@ -5,6 +5,9 @@ use lib qw(..);
+ use Test::More;
+ use FlashVideo::Site::Googlevideosearch;
+
++plan skip_all => "NO_NETWORK found in environment"
++ if $ENV{NO_NETWORK};
++
+ {
+ my $mech = FlashVideo::Mechanize->new;
+ $mech->get("http://www.google.com");
diff --git a/debian/patches/series b/debian/patches/series
index 21a6988..cf0b3a9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ fix_redirect.diff
00_fix_manpage_warning.diff
use_libcrypt-blowfish-perl.diff
updated-Youtube.pm-to-fix-breakage-with-introduction.diff
+no-network-tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/get-flash-videos.git
More information about the Pkg-perl-cvs-commits
mailing list