Changeset 149630 in webkit


Ignore:
Timestamp:
May 6, 2013 12:49:08 PM (11 years ago)
Author:
ddkilzer@apple.com
Message:

webkit-patch: fix 'upload' command with Bugzilla 4.2.5
<http://webkit.org/b/115667>

Reviewed by Dirk Pranke.

  • Scripts/webkitpy/common/net/bugzilla/bugzilla.py:

(Bugzilla._check_create_bug_response): Update regex to work with
Bugzilla 3.2.3 and 4.2.5.

  • Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py:

(testcheck_create_bug_response): Add new test that covers both
old and new <title> variations.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r149617 r149630  
     12013-05-06  David Kilzer  <ddkilzer@apple.com>
     2
     3        webkit-patch: fix 'upload' command with Bugzilla 4.2.5
     4        <http://webkit.org/b/115667>
     5
     6        Reviewed by Dirk Pranke.
     7
     8        * Scripts/webkitpy/common/net/bugzilla/bugzilla.py:
     9        (Bugzilla._check_create_bug_response): Update regex to work with
     10        Bugzilla 3.2.3 and 4.2.5.
     11        * Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py:
     12        (test__check_create_bug_response): Add new test that covers both
     13        old and new <title> variations.
     14
    1152013-05-06  Zan Dobersek  <zdobersek@igalia.com>
    216
  • trunk/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py

    r148504 r149630  
    630630    # FIXME: There has to be a more concise way to write this method.
    631631    def _check_create_bug_response(self, response_html):
    632         match = re.search("<title>Bug (?P<bug_id>\d+) Submitted</title>",
     632        match = re.search("<title>Bug (?P<bug_id>\d+) Submitted[^<]*</title>",
    633633                          response_html)
    634634        if match:
  • trunk/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py

    r148504 r149630  
    336336        assert_commit_queue_flag(mark_for_landing=True, mark_for_commit_queue=False, expected='+', username='reviewer@webkit.org')
    337337        assert_commit_queue_flag(mark_for_landing=True, mark_for_commit_queue=True, expected='+', username='reviewer@webkit.org')
     338
     339    def test__check_create_bug_response(self):
     340        bugzilla = Bugzilla()
     341
     342        title_html_bugzilla_323 = "<title>Bug 101640 Submitted</title>"
     343        self.assertEqual(bugzilla._check_create_bug_response(title_html_bugzilla_323), '101640')
     344
     345        title_html_bugzilla_425 = "<title>Bug 101640 Submitted &ndash; Testing webkit-patch again</title>"
     346        self.assertEqual(bugzilla._check_create_bug_response(title_html_bugzilla_425), '101640')
    338347
    339348
Note: See TracChangeset for help on using the changeset viewer.