[Koha-bugs] [Bug 11211] Move calculation code out of C4::Calendar

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 10 12:03:59 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11211

Magnus Enger <magnus at enger.priv.no> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |magnus at enger.priv.no

--- Comment #26 from Magnus Enger <magnus at enger.priv.no> ---
When I apply the two patches on this bug to master and try to run the tests, I
get this:

$ sudo koha-shell -c "prove t/db_dependent/Calendar.t" kohadev
t/db_dependent/Calendar.t .. Undefined subroutine &main::ModRepeatingEvent
called at t/db_dependent/Calendar.t line 22.
# Looks like your test exited with 255 before it could output anything.
t/db_dependent/Calendar.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 14/14 subtests 

Test Summary Report
-------------------
t/db_dependent/Calendar.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 14 tests but ran 0.
Files=1, Tests=0,  0 wallclock secs ( 0.02 usr  0.00 sys +  0.13 cusr  0.01
csys =  0.16 CPU)
Result: FAIL

The calendar page in the intranet seems to work as it should. Other
db_dependent tests do pass... I cannot for the life of me understand what is
happening here, and it does not seem to happen for others, so I am just leaving
this as a note, without changing the status of the bug. 

Holidays.t also fails:

$ sudo koha-shell -c "prove t/db_dependent/Holidays.t" kohadev
t/db_dependent/Holidays.t .. 1/6 
#   Failed test 'Sunday is a closed day'
#   at t/db_dependent/Holidays.t line 44.
#          got: '0'
#     expected: '1'

#   Failed test 'Christmas is a closed day'
#   at t/db_dependent/Holidays.t line 46.
#          got: '0'
#     expected: '1'

#   Failed test 'New Years day is a closed day'
#   at t/db_dependent/Holidays.t line 47.
#          got: '0'
#     expected: '1'
# Looks like you failed 3 tests of 6.
t/db_dependent/Holidays.t .. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/6 subtests 

Test Summary Report
-------------------
t/db_dependent/Holidays.t (Wstat: 768 Tests: 6 Failed: 3)
  Failed tests:  3, 5-6
  Non-zero exit status: 3
Files=1, Tests=6,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.18 cusr  0.02
csys =  0.23 CPU)
Result: FAIL

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list