If there are existing libraries in the DB, the tests will fail. There were several changes related to those tests recently, this bug report is a follow-up for them.
Was failing a lot today https://jenkins.koha-community.org/job/Koha_Master_U18/954/consoleFull https://jenkins.koha-community.org/job/Koha_Master_U16/134/consoleFull https://jenkins.koha-community.org/job/Koha_Master_D9_MDB_Latest/449/consoleFull 08:38:45 koha_1 | # Failed test 'ReservesControlBranch: ItemHomeLibrary, biblio1, patron1 should return 27 but returns 18' 08:38:45 koha_1 | # at t/db_dependent/Koha/Biblio.t line 405. 08:38:45 koha_1 | 08:38:45 koha_1 | # Failed test 'ReservesControlBranch: PatronLibrary, biblio1, patron1 should return 27 but returns 18' 08:38:45 koha_1 | # at t/db_dependent/Koha/Biblio.t line 405. 08:38:45 koha_1 | # Looks like you failed 2 tests of 8. 08:38:45 koha_1 | 08:38:45 koha_1 | # Failed test 'pickup_locations' 08:38:45 koha_1 | # at t/db_dependent/Koha/Biblio.t line 422.
Created attachment 113868 [details] [review] Bug 27062: Fix pickup_location tests when existing libraries exist If there are existing libraries in the DB, the tests will fail. There were several changes related to those tests recently, this bug report is a follow-up for them. bug 26984, bug 27002 and bug 26963.
This is not perfect, but I need the jenkins happy. Feel free to follow-up if you have a better fix.
Pushed to master for 20.11, thanks to everybody involved!
Doesn't apply cleanly to 20.05, please rebase
No need to backport I'd say.
Andrew, actually all the 20.05 jobs are failing because of this. The patch applies correctly now, can you backport it and see if it fixes the failure?