With MySQL turned off: $ sudo -u kohadev-koha KOHA_CONF=/etc/koha/sites/kohadev/koha-conf.xml prove t/Message.t t/Message.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/Message.t .. 1/1 # Failed test 'use C4::Message;' # at t/Message.t line 12. # Tried to use 'C4::Message'. # 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/Letters.pm line 27. # BEGIN failed--compilation aborted at C4/Letters.pm line 27. # Compilation failed in require at C4/Message.pm line 25. # BEGIN failed--compilation aborted at C4/Message.pm line 25. # Compilation failed in require at t/Message.t line 12. # BEGIN failed--compilation aborted at t/Message.t line 12. # Looks like you failed 1 test of 1. t/Message.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests Test Summary Report ------------------- t/Message.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=1, Tests=1, 1 wallclock secs ( 0.00 usr 0.02 sys + 0.68 cusr 0.48 csys = 1.18 CPU) Result: FAIL
Created attachment 33709 [details] [review] Bug 13282: t/Message.t shouldn't depend on the DB
Created attachment 33718 [details] [review] Bug 13282: t/Message.t shouldn't depend on the DB Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Created attachment 33735 [details] [review] Bug 13282: t/Message.t shouldn't depend on the DB Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Created attachment 33737 [details] [review] Bug 13282: t/Message.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>
Patch pushed to master.