ppisar pushed to perl-Term-UI (f22). "Fix test plan"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 25 14:15:04 UTC 2015


From d834fc1185a7d030cebc065b143cf88e798ef706 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Mon, 25 May 2015 16:13:20 +0200
Subject: Fix test plan


diff --git a/Term-UI-0.44-Correct-number-of-tests-to-skip-in-t-02_ui.t.patch b/Term-UI-0.44-Correct-number-of-tests-to-skip-in-t-02_ui.t.patch
new file mode 100644
index 0000000..b1c149c
--- /dev/null
+++ b/Term-UI-0.44-Correct-number-of-tests-to-skip-in-t-02_ui.t.patch
@@ -0,0 +1,35 @@
+From 136bc1a7ab0672248aa5f87b033ccd9012e8a56a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Mon, 25 May 2015 16:04:39 +0200
+Subject: [PATCH] Correct number of tests to skip in t/02_ui.t
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Running tests without terminal causes a failure because adding a new
+test for multiple choice forgot to increase the number of tests to
+skip when no terminal is available.
+
+CPAN RT#104688
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ t/02_ui.t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/t/02_ui.t b/t/02_ui.t
+index c2afb35..4e80afc 100644
+--- a/t/02_ui.t
++++ b/t/02_ui.t
+@@ -14,7 +14,7 @@ $Term::UI::VERBOSE      = $Term::UI::VERBOSE    = 0;
+ # SKIP tests if we aren't on a terminal
+ SKIP: {
+ 
+-skip 'not on a terminal', 20 unless -t;
++skip 'not on a terminal', 21 unless -t;
+ 
+ ### enable warnings
+ $^W = 1;
+-- 
+2.1.0
+
diff --git a/perl-Term-UI.spec b/perl-Term-UI.spec
index 869c2a0..658b566 100644
--- a/perl-Term-UI.spec
+++ b/perl-Term-UI.spec
@@ -6,6 +6,8 @@ License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Term-UI/
 Source0:        http://www.cpan.org/authors/id/B/BI/BINGOS/Term-UI-%{version}.tar.gz
+# Fix test plan, bug #1224733, CPAN RT#104688
+Patch0:         Term-UI-0.44-Correct-number-of-tests-to-skip-in-t-02_ui.t.patch
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -40,6 +42,7 @@ answer was not proper and re-issuing the question.
 
 %prep
 %setup -q -n Term-UI-%{version}
+%patch0 -p1
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Term-UI.git/commit/?h=f22&id=d834fc1185a7d030cebc065b143cf88e798ef706


More information about the scm-commits mailing list