From 6b933047f46efec1aa747570f945344254227457 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 15 Dec 2017 17:25:28 +0000 Subject: gentoo resync : 15.12.2017 --- ...Net-Telnet-Cisco-1.11-no-interactive-test.patch | 125 +++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch (limited to 'dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch') diff --git a/dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch b/dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch new file mode 100644 index 000000000000..7ab7b2ad20ab --- /dev/null +++ b/dev-perl/Net-Telnet-Cisco/files/Net-Telnet-Cisco-1.11-no-interactive-test.patch @@ -0,0 +1,125 @@ +From 60d93af35887e53677be5a0f95591489c2683c73 Mon Sep 17 00:00:00 2001 +From: Kent Fredric +Date: Wed, 13 Dec 2017 18:42:56 +1300 +Subject: Remove test interactivity + +Pass configuration by enviroment variables and don't prompt. +--- + test.pl | 82 ++++++++++++++++------------------------------------------------- + 1 file changed, 20 insertions(+), 62 deletions(-) + +diff --git a/test.pl b/test.pl +index 369bc30..e9f7ae2 100644 +--- a/test.pl ++++ b/test.pl +@@ -5,14 +5,8 @@ + + use Test::More tests => 32; + #use Test::More qw/no_plan/; +-use ExtUtils::MakeMaker qw/prompt/; + use Carp; + use Cwd; +-my $HAVE_Term_ReadKey = 0; +-eval "use Term::ReadKey"; +-if(!$@) { +- $HAVE_Term_ReadKey = 1 +-} + + use vars qw/$ROUTER $PASSWD $LOGIN $S $EN_PASS $PASSCODE/; + +@@ -161,18 +155,9 @@ END { cleanup() }; + + sub cleanup { + return unless -f "input.log" || -f "dump.log"; +- +- print <); +- } +- } else { +- print "$def\n"; +- } +- return ($ans ne '') ? $ans : $def; ++EOB + } +-- +2.14.3 + -- cgit v1.2.3