Jonathan Druart
405c2ac6b6
There are several things going on here. The tests are failing randomly when some additional class sources are in the DB. This should never happen on Jenkins, but it happened, see the third patch of this patch set (spoiler: tests not run within a txn) There were also a sorting problem: by default sort will show uppercases first: A, B, C, a, b, c However we want: a, A, b, B, c, C which is what fc does (https://perldoc.perl.org/functions/fc) Test plan: 0. Checkout the main branch, without patches from this patchset. 1. Run t/db_dependent/ClassSources.t several times => Notice that new entries in the DB table 'class_sources' are created 2. Run t/db_dependent/Koha/UI/Form/Builder/Biblio.t and t/db_dependent/Koha/UI/Form/Builder/Item.t => They fail (if not, run t/db_dependent/ClassSources.t again) 3. Apply the patches 4. Run t/db_dependent/ClassSources.t => No more additional entries in DB, tests are correctly run within transactions 5. Run t/db_dependent/Koha/UI/Form/Builder/Biblio.t and t/db_dependent/Koha/UI/Form/Builder/Item.t several times => They always pass Note that the sort should actually be done on the description, not the code. But that's for another bug... Signed-off-by: CJ Lynce <cj.lynce@westlakelibrary.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> |
||
---|---|---|
.. | ||
Acquisition | ||
api/v1 | ||
Auth | ||
AuthoritiesMarc | ||
Authority | ||
Biblio | ||
Budgets | ||
Circulation | ||
CourseReserves | ||
Creators | ||
cronjobs | ||
data | ||
Exporter | ||
Holds | ||
HoldsQueue | ||
Illrequest | ||
Items | ||
Koha | ||
Labels | ||
LDAP | ||
Letters | ||
Members | ||
misc/translator | ||
OAI | ||
Patron | ||
Record | ||
Reports | ||
Reserves | ||
Search | ||
selenium | ||
Serials | ||
SIP | ||
Template/Plugin | ||
Utils | ||
www | ||
00-strict.t | ||
Accounts.t | ||
Acquisition.t | ||
Amazon.t | ||
ArticleRequests.t | ||
AudioAlerts.t | ||
Auth.t | ||
Auth_with_cas.t | ||
Auth_with_ldap.t | ||
Auth_with_shibboleth.t | ||
AuthorisedValues.t | ||
AuthoritiesMarc.t | ||
AuthoritiesMarc_GetTagsLabels.t | ||
AuthUtils.t | ||
Barcodes.t | ||
Barcodes_ValueBuilder.t | ||
Biblio.t | ||
Biblio_holdsqueue.t | ||
Breeding.t | ||
Breeding_Auth.t | ||
Budgets.t | ||
Cache.t | ||
Calendar.t | ||
Charset.t | ||
check_kohastructure.t | ||
check_sysprefs.t | ||
Circulation.t | ||
Circulation_holdsqueue.t | ||
ClassSources.t | ||
Clubs.t | ||
Context.t | ||
Contract.t | ||
CourseReserves.t | ||
db_structure.t | ||
DecreaseLoanHighHolds.t | ||
Filter_MARC_ViewPolicy.t | ||
Fines.t | ||
FrameworkPlugin.t | ||
Heading.t | ||
Heading_MARC21.t | ||
Hold.t | ||
Holds.t | ||
HoldsQueue.t | ||
Holidays.t | ||
ILSDI_Services.t | ||
ImportBatch.t | ||
ImportExportFramework.t | ||
Installer.t | ||
Items.t | ||
Koha.t | ||
Koha_Database.t | ||
Koha_Elasticsearch.t | ||
Koha_ExternalContent_OverDrive.t | ||
Koha_MetadataRecord_Authority.t | ||
Koha_Misc_Files.t | ||
Languages.t | ||
Letters.t | ||
LibraryGroups.t | ||
Linker_Default.t | ||
Linker_FirstMatch.t | ||
Log.t | ||
MarcModificationTemplates.t | ||
Matcher.t | ||
Members.t | ||
Message.t | ||
MungeMarcPrice.t | ||
Overdues.t | ||
Passwordrecovery.t | ||
Patroncards.t | ||
PatronLists.t | ||
Patrons.t | ||
Prices.t | ||
Record.t | ||
RecordProcessor_EmbedSeeFromHeadings.t | ||
Reports.t | ||
Reserves.t | ||
rollingloans.t | ||
RotatingCollections.t | ||
Search.t | ||
Serials.t | ||
Serials_2.t | ||
Service.t | ||
ShelfBrowser.t | ||
Sitemapper.t | ||
SocialData.t | ||
StockRotationItems.t | ||
StockRotationRotas.t | ||
StockRotationStages.t | ||
SuggestionEngine_ExplodedTerms.t | ||
Suggestions.t | ||
sysprefs.t | ||
TablesSettings.t | ||
Tags.t | ||
Templates.t | ||
TestBuilder.t | ||
Upload.t | ||
UsageStats.t | ||
Virtualshelves.t | ||
XISBN.t | ||
XSLT.t | ||
yaml.t | ||
zebra_config.pl |