Changeset 85922 in webkit


Ignore:
Timestamp:
May 6, 2011 12:06:56 AM (13 years ago)
Author:
abarth@webkit.org
Message:

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

EWS can't reject patches
https://bugs.webkit.org/show_bug.cgi?id=60345

We're supposed to use patch.id() for the attachment ID, silly.

  • Scripts/webkitpy/tool/commands/earlywarningsystem.py:
  • Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85905 r85922  
     12011-05-06  Adam Barth  <abarth@webkit.org>
     2
     3        EWS can't reject patches
     4        https://bugs.webkit.org/show_bug.cgi?id=60345
     5
     6        We're supposed to use patch.id() for the attachment ID, silly.
     7
     8        * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
     9        * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
     10
    1112011-05-05  Steve Lacey  <sjl@chromium.org>
    212
  • trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py

    r85871 r85922  
    107107        if cls.watchers:
    108108            tool.bugs.add_cc_to_bug(patch.bug_id(), cls.watchers)
    109         tool.bugs.set_flag_on_attachment(patch.bug_id(), "commit-queue", "-", message, extra_message_text)
     109        tool.bugs.set_flag_on_attachment(patch.id(), "commit-queue", "-", message, extra_message_text)
    110110
    111111    @classmethod
  • trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py

    r85871 r85922  
    7373        tool = MockTool()
    7474        patch = tool.bugs.fetch_attachment(197)
    75         expected_stderr = """MOCK setting flag 'commit-queue' to '-' on attachment '42' with comment 'Attachment 197 did not pass mock-ews (win):
     75        expected_stderr = """MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Attachment 197 did not pass mock-ews (win):
    7676Output: http://dummy_url' and additional comment 'EXTRA'
    7777"""
     
    119119            "process_work_item": "MOCK: update_status: %(name)s Pass\nMOCK: release_work_item: %(name)s 197\n" % string_replacemnts,
    120120            "handle_script_error": """MOCK: update_status: %(name)s ScriptError error message
    121 MOCK setting flag 'commit-queue' to '-' on attachment '42' with comment 'Attachment 197 did not pass %(name)s (%(port)s):
     121MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Attachment 197 did not pass %(name)s (%(port)s):
    122122Output: http://dummy_url' and additional comment 'None'
    123123""" % string_replacemnts,
Note: See TracChangeset for help on using the changeset viewer.