[Koha-bugs] [Bug 18712] make test is failing with an empty DB - t/Matcher.t

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 2 14:22:06 CET 2017


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|gmcharlt at gmail.com          |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org
            Summary|Run database_dependent test |make test is failing with
                   |suite --No ignored          |an empty DB - t/Matcher.t
            Version|17.05                       |master
             Status|NEW                         |ASSIGNED

--- Comment #3 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
We have 2 problems here:
1/ t/Matcher.t is failing with an empty DB, the data are not mocked correctly
(Prices.t has been fixed earlier, maybe with bug 18289)
2/ We access DB during compilation time, which is quite bad.
>From C4::Auth, we retrieve system preference values in the BEGIN block:
  62     $cas       = C4::Context->preference('casAuthentication');
  64     $caslogout = C4::Context->preference('casLogout');
This should be rewritten and fixed, but it does not prevent the tests to pass,
but raises the "DBI connect failed" warning.

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


More information about the Koha-bugs mailing list