Koha-clms/t/db_dependent
Jonathan Druart 5808b3de5b Bug 14158: www search tests - Cleanup at the end
When something wrong happen, the parent process is waiting for the
children to finish, but they have been zombified and the test hangs.

To fix that, we should ensure that the cleanup is correctly done and
that the processes are correctly killed.

Test plan:
export KOHA_USER=koha
export KOHA_PASS=koha
export KOHA_INTRANET_URL=http://do_not_exist_but_its_expected
export KOHA_OPAC_URL=http://another_url
prove t/db_dependent/www/search_utf8.t

Without this patch, the tests will hang
With the patch applied, they won't!

Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 8255a18edc)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2016-04-06 15:49:15 +02:00
..
Acquisition Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Biblio Bug 15572: Add tests for TransformHtmlToMarc 2016-01-25 12:23:16 +01:00
Circulation Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Creators Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Exporter Bug 15081: (followup) Make test files using TestBuilder handle their transactions 2015-11-04 12:32:57 -03:00
Holds Bug 14878: (QA followup) Remove useless diag 2015-11-06 15:51:52 -03:00
Items Bug 14870: (followup) Remove stray C4::Dates 2015-11-19 13:05:06 -03:00
Koha Remove t/db_dependent/Koha/Objects.t 2016-01-28 09:50:13 +01:00
LDAP
…
Labels Bug 14468: (QA followup) remove useless diags 2015-10-27 10:38:15 -03:00
Letters
…
Members Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
OAI
…
Record Bug 12404: Allow equal sign '=' in the TT directive 2015-04-27 10:43:23 -03:00
Reports Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
Reserves Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Search Bug 10933: (followup of the followup) fix the previous patch to work with master 2015-10-27 13:06:01 -03:00
Serials Bug 15168: (followup) remove useless diags 2015-11-17 15:47:46 -03:00
Template/Plugin Bug 7380: Add tests for TT plugins 2015-05-19 10:10:31 -03:00
Utils Bug 15252 - Add tests 2015-12-31 10:41:16 +01:00
XSLT_Handler
…
api/v1 Bug 13799: Rename t/.../v1/borrowers.t to t/.../v1/patrons.t 2015-11-04 13:47:33 -03:00
data
…
www Bug 14158: www search tests - Cleanup at the end 2016-04-06 15:49:15 +02:00
00-strict.t
…
Accounts.t Bug 14402: (QA followup) Add notes to usage text about --fees 2015-11-09 15:00:02 -03:00
Acquisition.t Bug 13967: (QA followup) Make DBIx control transactions on tests 2015-06-04 15:12:45 -03:00
AdditionalField.t Bug 10855: Remove additional field values when subscription is removed 2015-10-02 15:10:31 -03:00
Amazon.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
AudioAlerts.t Bug 11431: (QA followup) remove diags 2015-11-06 15:08:37 -03:00
Auth.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Auth_with_cas.t Change syspref case to make tests pass 2016-03-23 14:18:08 +01:00
Auth_with_ldap.t Bug 15889: LDAP authentication: Only update mapped attributes 2016-04-01 14:18:33 +02:00
AuthorisedValues.t Bug 10363: Use Koha::AuthorisedValue[s] in the admin page 2015-10-19 12:46:27 -03:00
AuthoritiesMarc.t Bug 10985: [UNIMARC] Fix authority summary 2015-04-22 11:54:36 -03:00
BackgroundJob.t Bug 13606: Add tests and fix existing ones 2015-04-23 13:18:49 -03:00
Barcodes.t Bug 13673: (QA followup) Add license 2015-05-15 16:00:28 -03:00
Barcodes_ValueBuilder.t Bug 15081: (QA followup) Fix issue with Barcodes_ValueBuilder.t 2015-11-04 12:32:57 -03:00
Biblio.t Bug 10961: (followup) Make query fields explicit and add regression tests 2015-07-28 10:19:51 -03:00
Bookseller.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Borrower.t Bug 14778: Make 3 tests pass 2015-10-23 12:01:17 -03:00
Borrower_Debarments.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Borrower_Discharge.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Borrower_Files.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Borrowers.t Bug 13967: Add a couple of tests for SysPref and Object 2015-06-04 10:39:16 -03:00
Branch.t Bug 15628: Remove get_branchinfos_of vestiges 2016-02-04 22:29:05 +01:00
Breeding.t
…
Budgets.t Bug 14388: Funds should be sorted by budget_code 2015-11-09 12:08:20 -03:00
Category.t Bug 15081: (followup) Make test files using TestBuilder handle their transactions 2015-11-04 12:32:57 -03:00
Charset.t
…
Circulation.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Circulation_Branch.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Circulation_Issuingrule.t Bug 13590: Add ability to charge fines at start of charge period 2015-10-22 14:51:24 -03:00
Circulation_OfflineOperation.t
…
Circulation_dateexpiry.t Bug 15081: (followup) Make test files using TestBuilder handle their transactions 2015-11-04 12:32:57 -03:00
Circulation_issue.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Circulation_issuingrules.t Bug 14778: Use mock_dbh where it should be used 2015-10-23 12:01:18 -03:00
Circulation_transfers.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
ClassSource.t
…
ColumnsSettings.t
…
Context.t Bug 11998: Use Koha::Cache to cache sysprefs 2016-03-23 07:41:27 +01:00
Contract.t Bug 14693: Contract.t should generate dates based on current date 2015-08-21 10:43:38 -03:00
CourseReserves.t Bug 15530 - Add Unit Test 2016-01-27 15:33:25 +01:00
Csv.t
…
External_BakerTaylor.t
…
Fines.t Bug 13590: Add ability to charge fines at start of charge period 2015-10-22 14:51:24 -03:00
FrameworkPlugin.t Bug 10480: New module and unit test for framework plugins 2015-04-16 14:48:35 -03:00
Heading_MARC21.t
…
Hold.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Holds.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
HoldsQueue.t Bug 11998: Make HoldsQueue.t tests pass [TO REVERT] 2016-03-23 07:55:35 +01:00
Holidays.t Bug 15081: (followup) Make test files using TestBuilder handle their transactions 2015-11-04 12:32:57 -03:00
ILSDI_Services.t
…
ImportBatch.t Bug 6520: Add unit test for C4::ImportBatch::GetRecordFromImportBiblio 2015-04-16 13:40:59 -03:00
Installer.t
…
Items.t Bug 11998: Use C4::Context->preference in Koha/Schema/Result/Item.pm 2016-03-23 07:53:27 +01:00
Items_DelItem.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
KitchenSinkPlugin.kpz
…
Koha.t Bug 15337: Add tests to ensure that GetItemTypes will return element ordered by desc 2016-01-25 13:17:38 +01:00
Koha_Authority.t Bug 15578: Insert authority records before processing tests 2016-02-17 19:50:46 +01:00
Koha_Database.t
…
Koha_Misc_Files.t
…
Koha_borrower_modifications.t
…
Koha_template_plugin_Branches.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Koha_template_plugin_KohaDates.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Languages.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Letters.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Linker_FirstMatch.t
…
Log.t Bug 15939: Action logs - Do not default dates to today 2016-03-07 11:35:14 +01:00
MarcModificationTemplates.t
…
Members.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Members_Attributes.t Bug 15163: Do not erase patron attributes if limited to another library 2016-03-23 07:38:54 +01:00
Members_columns.t
…
MungeMarcPrice.t
…
NewsChannels.t Bug 14977: Followup to fix issue with NewsChannels.t 2015-10-29 11:58:52 -03:00
Overdues.t
…
PatronLists.t
…
Plugins.t Bug 12412: Add ability for plugins to convert arbitrary files to MARC from record staging tool 2015-05-04 15:33:51 -03:00
QueryParser.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Ratings.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Record.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
RecordProcessor_EmbedSeeFromHeadings.t Bug 14456: (regression test) Holdings fields should be skipped by EmbedSeeFromHeadings 2015-07-24 13:39:53 -03:00
Reports.t
…
ReportsGuided.t Bug 14778: Use mock_dbh where it should be used 2015-10-23 12:01:18 -03:00
Reports_Guided.t Bug 15152: t/db_dependent/Reports_Guided.t should not depend on existing data 2015-11-16 15:55:22 -03:00
Reserves.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Review.t Bug 15199: t/db_dependent/Review.t should not depend on existing data 2015-11-17 23:45:25 -03:00
RotatingCollections.t
…
SIPILS.t Bug 15947: move SIPILS.t to DB-dependent test directory 2016-03-07 11:36:58 +01:00
SIP_ILS.t
…
Search.t Bug 15082: t/db_dependent/Search.t shouldn't mock the DB connection 2015-10-29 14:10:23 -03:00
Serials.t Bug 15168: Remove C4:Serials::ItemizeSerials 2015-11-17 15:34:00 -03:00
Serials_2.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Service.t
…
ShelfBrowser.t Bug 14878: Tests - Create the branchcodes when needed 2015-11-06 15:51:51 -03:00
Sitemapper.t Bug 14778: Example - Replace DBI::Mock with Test::DBIx::Class - Sitemapper.t 2015-10-23 12:01:18 -03:00
Stats.t
…
SuggestionEngine_ExplodedTerms.t
…
Suggestions.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
Tags.t
…
Templates.t Bug 5338: (QA followup) update the tests for the new reports 2015-05-19 13:54:09 -03:00
TestBuilder.t Bug 15159: TestBuilder behaviour on AI values should be tested 2015-11-17 10:39:52 -03:00
Upload.t Bug 14893: Separate temporary storage per instance in Upload.pm 2016-02-01 17:25:31 +01:00
UsageStats.t Bug 14097: Fixed missing test cases 2016-03-07 14:22:13 +01:00
Virtualshelves.t Bug 14544: [QA Follow-up] Added some test descriptions 2015-11-05 10:00:31 -03:00
XISBN.t Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
XSLT_Handler.t
…
check_sysprefs.t Bug 14383: Fix some typos in comments and documentation 2015-06-22 17:34:46 -03:00
db_structure.t Bug 15517: Change number of tests for 3.22 2016-02-26 15:16:56 +01:00
default_search_class.pl Bug 11998: Use t::lib::Mocks::mock_preference in tests 2016-03-23 07:51:29 +01:00
rollingloans.t Bug 13315 - Add feedback for last item checked out to circulation.pl 2015-04-13 14:52:26 -03:00
sysprefs.t Bug 11998: Use Koha::Cache to cache sysprefs 2016-03-23 07:41:27 +01:00
zebra_config.pl Bug 15082: t/db_dependent/Search.t shouldn't mock the DB connection 2015-10-29 14:10:23 -03:00