Bug 13279 - t/Breeding.t shouldn't depend on the DB
Summary: t/Breeding.t shouldn't depend on the DB
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Chris Cormack
QA Contact: Galen Charlton
URL:
Keywords:
Depends on:
Blocks: 13275
  Show dependency treegraph
 
Reported: 2014-11-18 08:09 UTC by Magnus Enger
Modified: 2015-06-04 23:33 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 13279: t/Breeding.t shouldn't depend on the DB (1.43 KB, patch)
2014-11-19 21:06 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review
Bug 13279: t/Breeding.t shouldn't depend on the DB (1.48 KB, patch)
2014-11-20 00:35 UTC, Robin Sheat
Details | Diff | Splinter Review
Bug 13279: t/Breeding.t shouldn't depend on the DB (1.54 KB, patch)
2014-11-20 09:28 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2014-11-18 08:09:39 UTC
With MySQL turned off:

$ sudo -u kohadev-koha KOHA_CONF=/etc/koha/sites/kohadev/koha-conf.xml prove t/Breeding.t
t/Breeding.t .. DBI connect('dbname=koha_kohadev;host=localhost;port=3306','koha_kohadev',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at C4/Context.pm line 785
t/Breeding.t .. 1/1 
#   Failed test 'use C4::Breeding;'
#   at t/Breeding.t line 12.
#     Tried to use 'C4::Breeding'.
#     Error:  Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at C4/Context.pm line 785.
# Compilation failed in require at C4/Search.pm line 28.
# BEGIN failed--compilation aborted at C4/Search.pm line 28.
# Compilation failed in require at C4/AuthoritiesMarc.pm line 24.
# BEGIN failed--compilation aborted at C4/AuthoritiesMarc.pm line 24.
# Compilation failed in require at C4/ImportBatch.pm line 28.
# BEGIN failed--compilation aborted at C4/ImportBatch.pm line 28.
# Compilation failed in require at C4/Breeding.pm line 28.
# BEGIN failed--compilation aborted at C4/Breeding.pm line 28.
# Compilation failed in require at t/Breeding.t line 12.
# BEGIN failed--compilation aborted at t/Breeding.t line 12.
# Looks like you failed 1 test of 1.
t/Breeding.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

Test Summary Report
-------------------
t/Breeding.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=1,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.62 cusr  0.35 csys =  0.99 CPU)
Result: FAIL
Comment 1 Tomás Cohen Arazi 2014-11-19 21:06:41 UTC Comment hidden (obsolete)
Comment 2 Robin Sheat 2014-11-20 00:35:10 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2014-11-20 09:28:36 UTC
Created attachment 33732 [details] [review]
Bug 13279: t/Breeding.t shouldn't depend on the DB

Signed-off-by: Robin Sheat <robin@catalyst.net.nz>

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Comment 4 Tomás Cohen Arazi 2014-11-20 12:50:45 UTC
Patch pushed to master.