[libterm-readkey-perl] 11/13: Cherry-pick commit from upstream git to skip tests

gregor herrmann gregoa at debian.org
Sun Jul 12 16:53:46 UTC 2015


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

gregoa pushed a commit to branch master
in repository libterm-readkey-perl.

commit 3b2164bb38cd604438cd70c90d52715c5f78f99f
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jul 12 18:38:32 2015 +0200

    Cherry-pick commit from upstream git to skip tests
    
    if STDIN is not around.
    
    This can happen in chroots.
---
 ...l-on-the-02_terminal_functions.t-if-STDIN.patch | 39 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 40 insertions(+)

diff --git a/debian/patches/0001-Totally-bail-on-the-02_terminal_functions.t-if-STDIN.patch b/debian/patches/0001-Totally-bail-on-the-02_terminal_functions.t-if-STDIN.patch
new file mode 100644
index 0000000..764c7e6
--- /dev/null
+++ b/debian/patches/0001-Totally-bail-on-the-02_terminal_functions.t-if-STDIN.patch
@@ -0,0 +1,39 @@
+From ac5e11f8e58627370fd15faa82a932bbd7b74030 Mon Sep 17 00:00:00 2001
+From: Jonathan Stowe <jns+git at gellyfish.co.uk>
+Date: Fri, 5 Jun 2015 20:24:55 +0100
+Subject: [PATCH] Totally bail on the 02_terminal_functions.t if STDIN isn't a
+ terminal This should fix RT#96824
+
+---
+ t/02_terminal_functions.t | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/t/02_terminal_functions.t b/t/02_terminal_functions.t
+index 09fe2e4..be86e37 100644
+--- a/t/02_terminal_functions.t
++++ b/t/02_terminal_functions.t
+@@ -2,11 +2,20 @@ use strict;
+ use warnings;
+ 
+ 
+-use Test::More tests => 7;
++use Test::More ;
++
++if ( -t STDIN ) {
++   plan tests => 7;
++}
++else {
++   plan skip_all => "Need a terminal to test";
++}
+ 
+ use Term::ReadKey;
+ use Fcntl;
+ 
++$| = 1;
++
+ if ( not exists $ENV{COLUMNS} ){
+     $ENV{COLUMNS} = 80;
+     $ENV{LINES}   = 24;
+-- 
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e35c20b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Totally-bail-on-the-02_terminal_functions.t-if-STDIN.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libterm-readkey-perl.git



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