Changeset 56151 in webkit


Ignore:
Timestamp:
Mar 17, 2010 10:37:24 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-03-17 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

create-rollout should actually fill out the description
https://bugs.webkit.org/show_bug.cgi?id=36261

  • Scripts/webkitpy/commands/download.py:

The % operator was applied to the wrong string.

  • Scripts/webkitpy/commands/download_unittest.py:
  • Scripts/webkitpy/commands/upload_unittest.py:
  • Scripts/webkitpy/mock_bugzillatool.py:

Add support for seeing what we actually do with create_bug.

Location:
trunk/WebKitTools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r56146 r56151  
     12010-03-17  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        create-rollout should actually fill out the description
     6        https://bugs.webkit.org/show_bug.cgi?id=36261
     7
     8        * Scripts/webkitpy/commands/download.py:
     9            The % operator was applied to the wrong string.
     10        * Scripts/webkitpy/commands/download_unittest.py:
     11        * Scripts/webkitpy/commands/upload_unittest.py:
     12        * Scripts/webkitpy/mock_bugzillatool.py:
     13            Add support for seeing what we actually do with create_bug.
     14
    1152010-03-17  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
    216
  • trunk/WebKitTools/Scripts/webkitpy/commands/download.py

    r56133 r56151  
    302302        del state["bug_id"]
    303303        state["bug_title"] = "REGRESSION(r%s): %s" % (state["revision"], state["reason"])
    304         state["bug_description"] = "%s broke the build:\n%s"
     304        state["bug_description"] = "%s broke the build:\n%s" % (view_source_url(state["revision"]), state["reason"])
    305305        # FIXME: If we had more context here, we could link to other open bugs
    306306        #        that mention the test that regressed.
     
    314314
    315315"Only you can prevent forest fires." -- Smokey the Bear
    316 """ % (state["reason"], view_source_url(state["revision"]))
     316"""
    317317        return state
    318318
  • trunk/WebKitTools/Scripts/webkitpy/commands/download_unittest.py

    r56133 r56151  
    122122
    123123    def test_create_rollout(self):
    124         expected_stderr="Preparing rollout for bug 12345.\nUpdating working directory\nRunning prepare-ChangeLog\n"
     124        expected_stderr="Preparing rollout for bug 12345.\nMOCK create_bug\nbug_title: REGRESSION(r852): Reason\nbug_description: http://trac.webkit.org/changeset/852 broke the build:\nReason\nUpdating working directory\nRunning prepare-ChangeLog\n"
    125125        self.assert_execute_outputs(CreateRollout(), [852, "Reason"], options=self._default_options(), expected_stderr=expected_stderr)
    126126
  • trunk/WebKitTools/Scripts/webkitpy/commands/upload_unittest.py

    r55968 r56151  
    6666
    6767    def test_prepare(self):
    68         self.assert_execute_outputs(Prepare(), [])
     68        expected_stderr = "MOCK create_bug\nbug_title: Mock user response\nbug_description: Mock user response\n"
     69        self.assert_execute_outputs(Prepare(), [], expected_stderr=expected_stderr)
    6970
    7071    def test_upload(self):
  • trunk/WebKitTools/Scripts/webkitpy/mock_bugzillatool.py

    r56137 r56151  
    247247                                                            "foo@bar.com")])
    248248
     249    def create_bug(self,
     250                   bug_title,
     251                   bug_description,
     252                   component=None,
     253                   patch_file_object=None,
     254                   patch_description=None,
     255                   cc=None,
     256                   blocked=None,
     257                   mark_for_review=False,
     258                   mark_for_commit_queue=False):
     259        log("MOCK create_bug")
     260        log("bug_title: %s" % bug_title)
     261        log("bug_description: %s" % bug_description)
     262
    249263    def fetch_bug(self, bug_id):
    250264        return Bug(self.bug_cache.get(bug_id), self)
Note: See TracChangeset for help on using the changeset viewer.