Subject: | Installation prompts interactively when it shouldn't |
When installing a module that has Term::Readline::Perl as a dependency, via cpanm:
Fetching http://mirrors.gossamer-threads.com/CPAN/authors/id/I/IL/ILYAZ/modules/Term-ReadLine-Perl-1.0303.tar.gz ... OK
Configuring Term-ReadLine-Perl-1.0303 ... OK
Building and testing Term-ReadLine-Perl-1.0303 ... Features present: preput 1 minline 1 setHistory 1 newTTY 1 ornaments 1 autohistory 1 appname 1 addHistory 1 getHistory 1 tkRunning 1 attribs 1
Flipping rl_default_selected each line.
Hint: Entering the word
exit
would exit the test. ;-) (If feature 'preput' is present,
this word should be already entered.)
Enter arithmetic or Perl expression: exit
OK
Successfully installed Term-ReadLine-Perl-1.0303
The tests should not be halting and waiting for manual input when the tests are not being run interactively.
App::cpanminus follows the conventions described here, so the variables it sets should be respected:
https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md#environment-variables-for-testing-contexts