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