[Koha-bugs] [Bug 17965] TT syntax for notices - Prove that DUEDGST is compatible

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 22 14:27:20 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17965

--- Comment #7 from Marc Véron <veron at veron.ch> ---
...and that are the two outputs of TemplateToolkit.t:

--First run ---------------------------

marc at debian8vm:~/koha$ prove t/db_dependent/Letters/TemplateToolkit.t
t/db_dependent/Letters/TemplateToolkit.t .. 1/16 DBD::mysql::st execute failed:
Duplicate entry '37' for key 'PRIMARY' [for Statement "INSERT INTO old_issues
SELECT * FROM issues
                                  WHERE borrowernumber = ?
                                  AND itemnumber = ?" with ParamValues:
0='654336', 1='25'] at /home/marc/koha/C4/Circulation.pm line 2172.
DBD::mysql::st execute failed: Duplicate entry '37' for key 'PRIMARY' [for
Statement "INSERT INTO old_issues SELECT * FROM issues
                                  WHERE borrowernumber = ?
                                  AND itemnumber = ?" with ParamValues:
0='654336', 1='25'] at /home/marc/koha/C4/Circulation.pm line 2172.
 at t/db_dependent/Letters/TemplateToolkit.t line 463.

        #   Failed test at t/db_dependent/Letters/TemplateToolkit.t line 470.
        #          got: '
        # The following items have been checked out:
        # Test Biblio 1
        # Test Biblio 2
        # Thank you for visiting YCIAZz.
        # '
        #     expected: '
        # The following items have been checkin out:
        # Test Biblio 1 was due on 01.03.2017
        # Thank you for visiting YCIAZz.
        # '

        #   Failed test at t/db_dependent/Letters/TemplateToolkit.t line 471.
        #          got: '
        # The following items have been checkin out:
        # Test Biblio 2 was due on 01.03.2017
        # Thank you for visiting YCIAZz.
        # '
        #     expected: '
        # The following items have been checkin out:
        # Test Biblio 1 was due on 01.03.2017
        # Test Biblio 2 was due on 01.03.2017
        # Thank you for visiting YCIAZz.
        # '
        # Looks like you failed 2 tests of 4.

    #   Failed test 'CHECKOUT+CHECKIN'
    #   at t/db_dependent/Letters/TemplateToolkit.t line 473.
    # Looks like you failed 1 test of 4.
t/db_dependent/Letters/TemplateToolkit.t .. 16/16 
#   Failed test 'regression tests'
#   at t/db_dependent/Letters/TemplateToolkit.t line 503.
# Looks like you failed 1 test of 16.
t/db_dependent/Letters/TemplateToolkit.t .. Dubious, test returned 1 (wstat
256, 0x100)
Failed 1/16 subtests 

Test Summary Report
-------------------
t/db_dependent/Letters/TemplateToolkit.t (Wstat: 256 Tests: 16 Failed: 1)
  Failed test:  16
  Non-zero exit status: 1
Files=1, Tests=16,  3 wallclock secs ( 0.02 usr  0.02 sys +  2.28 cusr  0.36
csys =  2.68 CPU)
Result: FAIL

-Second run, immediately after first run-----------------

marc at debian8vm:~/koha$ prove t/db_dependent/Letters/TemplateToolkit.t
t/db_dependent/Letters/TemplateToolkit.t .. ok     
All tests successful.
Files=1, Tests=16,  2 wallclock secs ( 0.03 usr  0.00 sys +  1.63 cusr  0.87
csys =  2.53 CPU)
Result: PASS

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


More information about the Koha-bugs mailing list