Skip Menu |

This queue is for tickets about the Mnet CPAN distribution.

Report information
The Basics
Id: 130756
Status: resolved
Priority: 0/
Queue: Mnet

People
Owner: MMENZA [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 5.04
  • 5.09
Fixed in: 5.10



Subject: Wrong perl used in tests (?)
Most tests on my smokers fail like this: ... # Failed test 'enable method --record' # at t/Expect_Cli_Ios.t line 114. # got: 'Can't locate Text/Diff.pm in @INC (you may need to install the Text::Diff module) (@INC contains: /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base . /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib/Mnet//Depends) at /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib/Mnet/Test.pm line 69. # BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib/Mnet/Test.pm line 69. # Compilation failed in require at -e line 5. # BEGIN failed--compilation aborted at -e line 5. # ' # expected: '1' # Failed test 'enable method --replay' # at t/Expect_Cli_Ios.t line 124. # got: 'Can't locate Text/Diff.pm in @INC (you may need to install the Text::Diff module) (@INC contains: /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base . /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib/Mnet//Depends) at /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib/Mnet/Test.pm line 69. # BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib/Mnet/Test.pm line 69. # Compilation failed in require at -e line 5. # BEGIN failed--compilation aborted at -e line 5. # ' # expected: '1' # Looks like you failed 2 tests of 8. t/Expect_Cli_Ios.t ....... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/8 subtests ... (etc) ... It seems that the wrong perl exectuable is used here. @INC looks like system perl is called, but the CPAN distribution was built with another perl. Usually the fix in such situations is to use $^X, or to make sure that the correct shebang is substituted before running the tests.
On 2019-10-20 05:50:55, SREZIC wrote: Show quoted text
> Most tests on my smokers fail like this: > > ... > # Failed test 'enable method --record' > # at t/Expect_Cli_Ios.t line 114. > # got: 'Can't locate Text/Diff.pm in @INC (you may need to > install the Text::Diff module) (@INC contains: > /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib > /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/arch /etc/perl > /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 > /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 > /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 > /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux- > gnu/perl-base . /home/cpansand/.cpan/build/2019101920/Mnet-5.04- > 1/blib/lib/Mnet//Depends) at > /home/cpansand/.cpan/build/2019101920/Mnet-5.04- > 1/blib/lib/Mnet/Test.pm line 69. > # BEGIN failed--compilation aborted at > /home/cpansand/.cpan/build/2019101920/Mnet-5.04- > 1/blib/lib/Mnet/Test.pm line 69. > # Compilation failed in require at -e line 5. > # BEGIN failed--compilation aborted at -e line 5. > # ' > # expected: '1' > > # Failed test 'enable method --replay' > # at t/Expect_Cli_Ios.t line 124. > # got: 'Can't locate Text/Diff.pm in @INC (you may need to > install the Text::Diff module) (@INC contains: > /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/lib > /home/cpansand/.cpan/build/2019101920/Mnet-5.04-1/blib/arch /etc/perl > /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 > /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 > /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 > /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux- > gnu/perl-base . /home/cpansand/.cpan/build/2019101920/Mnet-5.04- > 1/blib/lib/Mnet//Depends) at > /home/cpansand/.cpan/build/2019101920/Mnet-5.04- > 1/blib/lib/Mnet/Test.pm line 69. > # BEGIN failed--compilation aborted at > /home/cpansand/.cpan/build/2019101920/Mnet-5.04- > 1/blib/lib/Mnet/Test.pm line 69. > # Compilation failed in require at -e line 5. > # BEGIN failed--compilation aborted at -e line 5. > # ' > # expected: '1' > # Looks like you failed 2 tests of 8. > t/Expect_Cli_Ios.t ....... > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/8 subtests > ... (etc) ... > > It seems that the wrong perl exectuable is used here. @INC looks like > system perl is called, but the CPAN distribution was built with > another perl. Usually the fix in such situations is to use $^X, or to > make sure that the correct shebang is substituted before running the > tests.
Test failures look different now, but still it looks like the wrong perl may be used: ... # Failed test 'json output in alphabetical order' # at t/Report_Table.t line 58. # got: ' # ERR - Carp perl die, Mnet::Report::Table json requires perl JSON module is installed at -e line 18. # err - Carp perl die, at /usr/home/cpansand/.cpan/build/2019102107/Mnet-5.09-3/blib/lib/Mnet/Log.pm line 131. # err - Carp perl die, Mnet::Log::__ANON__("Mnet::Report::Table json requires perl JSON module is install"...) called at /usr/local/lib/perl5/5.30/Carp.pm line 291 # err - Carp perl die, Carp::croak("Mnet::Report::Table json requires perl JSON module is installed") called at /usr/home/cpansand/.cpan/build/2019102107/Mnet-5.09-3/blib/lib/Mnet/Report/Table.pm line 554 # err - Carp perl die, Mnet::Report::Table::_output_json(Mnet::Report::Table=HASH(0x416e8798), HASH(0x416e8a68)) called at /usr/home/cpansand/.cpan/build/2019102107/Mnet-5.09-3/blib/lib/Mnet/Report/Table.pm line 353 # err - Carp perl die, Mnet::Report::Table::_output(Mnet::Report::Table=HASH(0x416e8798), HASH(0x416e8a68)) called at /usr/home/cpansand/.cpan/build/2019102107/Mnet-5.09-3/blib/lib/Mnet/Report/Table.pm line 275 # err - Carp perl die, Mnet::Report::Table::row(Mnet::Report::Table=HASH(0x416e8798), HASH(0x40b0e930)) called at -e line 18 # err - Carp perl die, $@ = Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /usr/home/cpansand/.cpan/build/2019102107/Mnet-5.09-3/blib/lib /usr/home/cpansand/.cpan/build/2019102107/Mnet-5.09-3/blib/arch /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30 . /usr/home/cpansand/.cpan/build/2019102107/Mnet-5.09-3/blib/lib/Mnet//Depends) at (eval 7) line 1. # err - Carp perl die, $? = 0 # ' # expected: ' # test = {"err":null,"int":5,"str":"1\r'2\n\""}; # ' ...
Thanks for the feedback, and the hint on a fix! problem resolved in Mnet 5.10+