With MySQL turned off: $ sudo -u kohadev-koha KOHA_CONF=/etc/koha/sites/kohadev/koha-conf.xml prove t/Circulation_barcodedecode.t t/Circulation_barcodedecode.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/Circulation_barcodedecode.t .. 1/26 # Failed test 'use C4::Circulation;' # at t/Circulation_barcodedecode.t line 12. # Tried to use 'C4::Circulation'. # 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/Reserves.pm line 28. # BEGIN failed--compilation aborted at C4/Reserves.pm line 28. # Compilation failed in require at C4/Circulation.pm line 27. # BEGIN failed--compilation aborted at C4/Circulation.pm line 27. # Compilation failed in require at t/Circulation_barcodedecode.t line 12. # BEGIN failed--compilation aborted at t/Circulation_barcodedecode.t line 12. Undefined subroutine &C4::Circulation::barcodedecode called at t/Circulation_barcodedecode.t line 37. # Looks like you planned 26 tests but ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test exited with 255 just after 1. t/Circulation_barcodedecode.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 26/26 subtests Test Summary Report ------------------- t/Circulation_barcodedecode.t (Wstat: 65280 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 255 Parse errors: Bad plan. You planned 26 tests but ran 1. Files=1, Tests=1, 3 wallclock secs ( 0.02 usr 0.00 sys + 0.63 cusr 0.57 csys = 1.22 CPU) Result: FAIL
Created attachment 33707 [details] [review] Bug 13280: t/Circulation_barcodedecode.t shouldn't depend on the DB
Created attachment 33720 [details] [review] Bug 13280: t/Circulation_barcodedecode.t shouldn't depend on the DB Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Created attachment 33733 [details] [review] Bug 13280: t/Circulation_barcodedecode.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.