Subject: | tests can fail because mock-ssh uses /usr/bin/perl |
I've just tried installing Net-SSH-Mechanize-0.1.2 in
my own build of perl-5.14.2 on RHEL5
root@kolanut# ./Build test
t/00.load.t ................. ok
t/01.pod.t .................. ok
t/01.single-capture.t ....... error: "GetOptionsFromArray" is not exported by the Getopt::Long
module
Can't continue after import errors at /data/opt/uq.local/build/uq.is.perl.rhel5-5.14.2-
20120504.build/tarball-build/Net-SSH-Mechanize-0.1.2/t/bin/mock-ssh line 5
The tests pass if I change t/bin/mock-ssh
to use /opt/bin/perl (a slightly older version of my 5.14.2 build)
rather than Red Hat's default 5.8.8.
Is there an easy way for mock-ssh to use the perl
this module is being built for ?
FYI while the tests now pass, I do see
t/01.single-capture.t ....... 1/4 unexpected stderr from command: stderr output
t/01.single-capture.t ....... ok
t/01.single-sudo-capture.t .. 1/4 unexpected stderr from sudo command: stderr output
t/01.single-sudo-capture.t .. ok
t/02.multi-capture.t ........ 1/32 unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
unexpected stderr from command: stderr output
t/02.multi-capture.t ........ ok