ppisar pushed to perl-AnyEvent-CacheDNS (master). "Fix test plan"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Jun 8 07:32:58 UTC 2015
From 97ebf41b52829b6b8b8cae4aa85e5ad51cee01a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Mon, 8 Jun 2015 09:28:49 +0200
Subject: Fix test plan
diff --git a/AnyEvent-CacheDNS-0.08-Fix-number-of-tests-to-skip.patch b/AnyEvent-CacheDNS-0.08-Fix-number-of-tests-to-skip.patch
new file mode 100644
index 0000000..17adaed
--- /dev/null
+++ b/AnyEvent-CacheDNS-0.08-Fix-number-of-tests-to-skip.patch
@@ -0,0 +1,34 @@
+From 7f871549a8607bc7f7969ec571724ac67273071a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Mon, 8 Jun 2015 09:25:21 +0200
+Subject: [PATCH] Fix number of tests to skip
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+If the Internet was unrachable the test plan did not match the number
+of skipped tests. This patch corrects the number of skipped tests.
+
+<https://github.com/potyl/perl-AnyEvent-CacheDNS/issues/5>
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ t/dns.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/dns.t b/t/dns.t
+index afad2a1..fd6042c 100644
+--- a/t/dns.t
++++ b/t/dns.t
+@@ -53,7 +53,7 @@ sub main {
+ ok(! defined $cached, "Cache has no record for host");
+
+ SKIP: {
+- skip "DNS lookup for $host failed", 3;
++ skip "DNS lookup for $host failed", 5;
+ };
+
+ return 0;
+--
+2.1.0
+
diff --git a/perl-AnyEvent-CacheDNS.spec b/perl-AnyEvent-CacheDNS.spec
index 736c95e..f019431 100644
--- a/perl-AnyEvent-CacheDNS.spec
+++ b/perl-AnyEvent-CacheDNS.spec
@@ -6,6 +6,9 @@ License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/AnyEvent-CacheDNS/
Source0: http://www.cpan.org/authors/id/P/PO/POTYL/AnyEvent-CacheDNS-%{version}.tar.gz
+# Correct test plan for case no Internet is available
+# <https://github.com/potyl/perl-AnyEvent-CacheDNS/issues/5>
+Patch0: AnyEvent-CacheDNS-0.08-Fix-number-of-tests-to-skip.patch
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(File::Spec::Functions)
@@ -27,6 +30,7 @@ and can improve the connection times to remote hosts.
%prep
%setup -q -n AnyEvent-CacheDNS-%{version}
+%patch0 -p1
%build
perl Build.PL installdirs=vendor
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/perl-AnyEvent-CacheDNS.git/commit/?h=master&id=97ebf41b52829b6b8b8cae4aa85e5ad51cee01a8
More information about the scm-commits
mailing list