[Koha-bugs] [Bug 8848] New: 'make test' fails on Barcodes_ValueBuilder.t (upgrading from 3.08.04)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 1 04:01:03 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8848
Priority: P5 - low
Change sponsored?: ---
Bug ID: 8848
Assignee: gmcharlt at gmail.com
Summary: 'make test' fails on Barcodes_ValueBuilder.t
(upgrading from 3.08.04)
Severity: major
Classification: Unclassified
OS: Linux
Reporter: derrynj at gmail.com
Hardware: All
Status: NEW
Version: rel_3_8
Component: Installation and upgrade (command-line installer)
Product: Koha
When I went to update from Koha 3.08.04 to .05 (from tarball):
I did the usual
perl koha_perl_deps.pl -m -u
It reported no extra deps needed
perl Makefile.PL --prev-install-log /usr/share/koha/misc/koha-install-log
-PASSED
make
-PASSED
make test
- FAIL
When I looked back at the logs I found it was missing a perl dep:
Can't locate Test/MockModule.pm in @INC (@INC contains:
/home/koha/koha-3.08.05/blib/PERL_MODULE_DIR /home/koha/koha-3.08.05/blib/arch
/usr/share/koha/lib /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at t/Barcodes_ValueBuilder.t
line 6.
After I grabbed libtest-mockmodule-perl with an apt-get install:
make test
t/Barcodes_ValueBuilder.t ........... 1/10 install_driver(Mock) failed: Can't
locate DBD/Mock.pm in @INC (@INC contains:
/home/koha/koha-3.08.05/blib/PERL_MODULE_DIR /home/koha/koha-3.08.05/blib/arch
/usr/share/koha/lib /usr/share/koha/lib /etc/perl /usr/local/lib/perl/5.14.2
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 30) line 3.
Perhaps the DBD::Mock perl module hasn't been fully installed,
or perhaps the capitalisation of 'Mock' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite2, Sponge, mysql.
at t/Barcodes_ValueBuilder.t line 15.
# Looks like you planned 10 tests but ran 1.
# Looks like your test exited with 2 just after 1.
t/Barcodes_ValueBuilder.t ........... Dubious, test returned 2 (wstat 512,
0x200)
Failed 9/10 subtests
Tracked that one down to libdbd-mock-perl.
Installed and reran make test
-PASS
I'm assuming these modules are only for testing purposes, but its a little
disconcerting when a test that has previously worked suddenly fails.
Additional Information:
My Koha installation is:
OS: Ubuntu server 12.04
Arch: amd64
Current Koha Version 3.08.04 (tarball)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list