Changeset 88581 in webkit


Ignore:
Timestamp:
Jun 10, 2011 5:38:26 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-06-10 Adam Barth <abarth@webkit.org>

Reviewed by James Robinson.

When sheriffbot reports failures on IRC instead of saying "(and more..)" it should say the number of tests that are failing
https://bugs.webkit.org/show_bug.cgi?id=62489

  • Scripts/webkitpy/tool/bot/sheriff.py:
  • Scripts/webkitpy/tool/commands/sheriffbot_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r88576 r88581  
     12011-06-10  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by James Robinson.
     4
     5        When sheriffbot reports failures on IRC instead of saying "(and more..)" it should say the number of tests that are failing
     6        https://bugs.webkit.org/show_bug.cgi?id=62489
     7
     8        * Scripts/webkitpy/tool/bot/sheriff.py:
     9        * Scripts/webkitpy/tool/commands/sheriffbot_unittest.py:
     10
    1112011-06-10  Tony Chang  <tony@chromium.org>
    212
  • trunk/Tools/Scripts/webkitpy/tool/bot/sheriff.py

    r87107 r88581  
    5858        test_list_limit = 5
    5959        irc_message = "New failures: %s" % ", ".join(sorted(failing_tests)[:test_list_limit])
    60         if len(failing_tests) > test_list_limit:
    61             irc_message += " (and more...)"
     60        failure_count = len(failing_tests)
     61        if failure_count > test_list_limit:
     62            irc_message += " (and %s more...)" % (failure_count - test_list_limit)
    6263        self._tool.irc().post(irc_message)
    6364
  • trunk/Tools/Scripts/webkitpy/tool/commands/sheriffbot_unittest.py

    r87107 r88581  
    5959            "next_work_item": "",
    6060            "process_work_item": """MOCK: irc.post: abarth, darin, eseidel: http://trac.webkit.org/changeset/29837 might have broken Builder1
    61 MOCK: irc.post: New failures: test1, test2, test3, test4, test5 (and more...)
     61MOCK: irc.post: New failures: test1, test2, test3, test4, test5 (and 2 more...)
    6262""",
    6363            "handle_unexpected_error": "Mock error message\n",
Note: See TracChangeset for help on using the changeset viewer.