Changeset 56976 in webkit


Ignore:
Timestamp:
Apr 2, 2010 12:04:50 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-01 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Add cr-win-ews
https://bugs.webkit.org/show_bug.cgi?id=36974

Adds support for an Early Warning System for Chromium on Linux. The
interface to the Chromium port is the same on every platform, so we
don't need to create a new Port object for this queue.

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

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r56975 r56976  
     12010-04-01  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Add cr-win-ews
     6        https://bugs.webkit.org/show_bug.cgi?id=36974
     7
     8        Adds support for an Early Warning System for Chromium on Linux.  The
     9        interface to the Chromium port is the same on every platform, so we
     10        don't need to create a new Port object for this queue.
     11
     12        * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
     13        * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
     14
    1152010-04-01  Adam Barth  <abarth@webkit.org>
    216
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/earlywarningsystem.py

    r56888 r56976  
    119119
    120120
    121 class ChromiumEWS(AbstractEarlyWarningSystem):
    122     name = "chromium-ews"
     121class AbstractChromiumEWS(AbstractEarlyWarningSystem):
    123122    port_name = "chromium"
    124123    watchers = AbstractEarlyWarningSystem.watchers + [
    125124        "dglazkov@chromium.org",
    126125    ]
     126
     127
     128class ChromiumLinuxEWS(AbstractChromiumEWS):
     129    # FIXME: We should rename this command to cr-linux-ews, but that requires
     130    #        a database migration. :(
     131    name = "chromium-ews"
     132
     133
     134class ChromiumWindowsEWS(AbstractChromiumEWS):
     135    name = "cr-win-ews"
    127136
    128137
  • trunk/WebKitTools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py

    r56888 r56976  
    3535class EarlyWarningSytemTest(QueuesTest):
    3636    def test_failed_builds(self):
    37         ews = ChromiumEWS()
     37        ews = ChromiumLinuxEWS()
    3838        ews._build = lambda patch, first_run=False: False
    3939        ews._can_build = lambda: True
    4040        ews.review_patch(Mock())
    4141
    42     def test_chromium_ews(self):
     42    def test_chromium_linux_ews(self):
    4343        expected_stderr = {
    44             "begin_work_queue" : "CAUTION: chromium-ews will discard all local changes in \"%s\"\nRunning WebKit chromium-ews.\n" % os.getcwd(),
    45             "handle_unexpected_error" : "Mock error message\n",
     44            "begin_work_queue": "CAUTION: chromium-ews will discard all local changes in \"%s\"\nRunning WebKit chromium-ews.\n" % os.getcwd(),
     45            "handle_unexpected_error": "Mock error message\n",
    4646        }
    47         self.assert_queue_outputs(ChromiumEWS(), expected_stderr=expected_stderr)
     47        self.assert_queue_outputs(ChromiumLinuxEWS(), expected_stderr=expected_stderr)
     48
     49    def test_chromium_windows_ews(self):
     50        expected_stderr = {
     51            "begin_work_queue": "CAUTION: cr-win-ews will discard all local changes in \"%s\"\nRunning WebKit cr-win-ews.\n" % os.getcwd(),
     52            "handle_unexpected_error": "Mock error message\n",
     53        }
     54        self.assert_queue_outputs(ChromiumWindowsEWS(), expected_stderr=expected_stderr)
    4855
    4956    def test_qt_ews(self):
    5057        expected_stderr = {
    51             "begin_work_queue" : "CAUTION: qt-ews will discard all local changes in \"%s\"\nRunning WebKit qt-ews.\n" % os.getcwd(),
    52             "handle_unexpected_error" : "Mock error message\n",
     58            "begin_work_queue": "CAUTION: qt-ews will discard all local changes in \"%s\"\nRunning WebKit qt-ews.\n" % os.getcwd(),
     59            "handle_unexpected_error": "Mock error message\n",
    5360        }
    5461        self.assert_queue_outputs(QtEWS(), expected_stderr=expected_stderr)
     
    5663    def test_gtk_ews(self):
    5764        expected_stderr = {
    58             "begin_work_queue" : "CAUTION: gtk-ews will discard all local changes in \"%s\"\nRunning WebKit gtk-ews.\n" % os.getcwd(),
    59             "handle_unexpected_error" : "Mock error message\n",
     65            "begin_work_queue": "CAUTION: gtk-ews will discard all local changes in \"%s\"\nRunning WebKit gtk-ews.\n" % os.getcwd(),
     66            "handle_unexpected_error": "Mock error message\n",
    6067        }
    6168        self.assert_queue_outputs(GtkEWS(), expected_stderr=expected_stderr)
     
    6370    def test_mac_ews(self):
    6471        expected_stderr = {
    65             "begin_work_queue" : "CAUTION: mac-ews will discard all local changes in \"%s\"\nRunning WebKit mac-ews.\n" % os.getcwd(),
    66             "handle_unexpected_error" : "Mock error message\n",
     72            "begin_work_queue": "CAUTION: mac-ews will discard all local changes in \"%s\"\nRunning WebKit mac-ews.\n" % os.getcwd(),
     73            "handle_unexpected_error": "Mock error message\n",
    6774        }
    6875        self.assert_queue_outputs(MacEWS(), expected_stderr=expected_stderr)
Note: See TracChangeset for help on using the changeset viewer.