[Koha-bugs] [Bug 18951] Some t/Biblio tests are database dependent

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 31 09:57:33 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18951

Fridolin SOMERS <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fridolin.somers at biblibre.co
                   |                            |m

--- Comment #11 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Testing on 17.05.x, I get a crash :

$ prove t/db_dependent/Biblio/TransformKohaToMarc.t 
t/db_dependent/Biblio/TransformKohaToMarc.t .. DBIx::Class::ResultSet::find():
find() expects either a column/value hashref, or a list of values corresponding
to the columns of the specified unique constraint 'primary' at
/home/koha/src/Koha/Objects.pm line 83
# Looks like your test exited with 255 before it could output anything.
t/db_dependent/Biblio/TransformKohaToMarc.t .. Dubious, test returned 255
(wstat 65280, 0xff00)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/db_dependent/Biblio/TransformKohaToMarc.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
Files=1, Tests=0,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.71 cusr  0.04
csys =  0.77 CPU)
Result: FAIL

Looks like Koha::MarcSubfieldStructures->find('','300','b') crashed.
May I use Koha::MarcSubfieldStructures->search( { frameworkcode => '', tagfield
=> '300', tagsubfield => 'a' } ) like in AuthorisedValues.t ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list