https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21281
Michal Denar <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #10 from Michal Denar <[email protected]> --- Hi, If I did folow tets plan, I get erroe after first patch: not ok 334 - get_batch_summary() raises warning if something went wrong with the sql request execution # Failed test 'get_batch_summary() raises warning if something went wrong with the sql request execution' # at t/db_dependent/Creators/Lib.t line 766. # found warning: DBD::mysql::st execute failed: Unknown column 'count(batch_id) as _item_count' in 'field list' [for Statement "SELECT `batch_id`, `count(batch_id) as _item_count` FROM creator_batches GROUP BY batch_id"] at /home/vagrant/kohaclone/C4/Creators/Lib.pm line 286. # found warning: Database returned the following error on attempted SELECT: something went wrong at /home/vagrant/kohaclone/C4/Creators/Lib.pm line 288. # expected to find warning: Database returned the following error on attempted SELECT: something went wrong ok 335 - $batches return -1 DBD::mysql::st execute failed: Unknown column 'count(batch_id) as _item_count' in 'field list' [for Statement "SELECT `batch_id`, `count(batch_id) as _item_count` FROM creator_batches WHERE 1 AND creator = ? GROUP BY batch_id" with ParamValues: 0='Labels'] at /home/vagrant/kohaclone/C4/Creators/Lib.pm line 286. Database returned the following error on attempted SELECT: Unknown column 'count(batch_id) as _item_count' in 'field list' at /home/vagrant/kohaclone/C4/Creators/Lib.pm line 288. ok 336 - There are 2 batches Can't use string ("-1") as an ARRAY ref while "strict refs" in use at t/db_dependent/Creators/Lib.t line 785. # Looks like your test exited with 255 just after 336. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 310/645 subtests Test Summary Report ------------------- t/db_dependent/Creators/Lib.t (Wstat: 65280 Tests: 336 Failed: 1) Failed test: 334 Non-zero exit status: 255 Parse errors: Bad plan. You planned 645 tests but ran 336. Files=1, Tests=336, 2 wallclock secs ( 0.13 usr 0.04 sys + 1.82 cusr 0.13 csys = 2.12 CPU) Result: FAIL If I did apply both patch together, first test was without errors. I'm new in testing, maybe I did some mistake. Mike -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
