Changeset 149630 in webkit
- Timestamp:
- May 6, 2013 12:49:08 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r149617 r149630 1 2013-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 1 15 2013-05-06 Zan Dobersek <zdobersek@igalia.com> 2 16 -
trunk/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla.py
r148504 r149630 630 630 # FIXME: There has to be a more concise way to write this method. 631 631 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>", 633 633 response_html) 634 634 if match: -
trunk/Tools/Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py
r148504 r149630 336 336 assert_commit_queue_flag(mark_for_landing=True, mark_for_commit_queue=False, expected='+', username='reviewer@webkit.org') 337 337 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 – Testing webkit-patch again</title>" 346 self.assertEqual(bugzilla._check_create_bug_response(title_html_bugzilla_425), '101640') 338 347 339 348
Note: See TracChangeset
for help on using the changeset viewer.