Changeset 85524 in webkit


Ignore:
Timestamp:
May 2, 2011 2:43:29 PM (13 years ago)
Author:
abarth@webkit.org
Message:

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

Reviewed by Eric Seidel.

cr-linux-ews should run tests
https://bugs.webkit.org/show_bug.cgi?id=59272

This patch turns on testing for the cr-linux-ews. Yay!

  • Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py:
  • Scripts/webkitpy/tool/commands/earlywarningsystem.py:
  • Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
  • Scripts/webkitpy/tool/steps/runtests.py:
  • Scripts/webkitpy/tool/steps/steps_unittest.py:
Location:
trunk/Tools
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r85516 r85524  
     12011-05-02  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        cr-linux-ews should run tests
     6        https://bugs.webkit.org/show_bug.cgi?id=59272
     7
     8        This patch turns on testing for the cr-linux-ews.  Yay!
     9
     10        * Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py:
     11        * Scripts/webkitpy/tool/commands/earlywarningsystem.py:
     12        * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py:
     13        * Scripts/webkitpy/tool/steps/runtests.py:
     14        * Scripts/webkitpy/tool/steps/steps_unittest.py:
     15
    1162011-05-02  Martin Robinson  <mrobinson@igalia.com>
    217
  • trunk/Tools/Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py

    r84689 r85524  
    5656        results = reader.results()
    5757        self.assertNotEquals(results, None)
    58         self.assertEquals(results.failure_limit_count(), 10)  # This value matches RunTests.NON_INTERACTIVE_FAILURE_LIMIT_COUNT
     58        self.assertEquals(results.failure_limit_count(), 20)  # This value matches RunTests.NON_INTERACTIVE_FAILURE_LIMIT_COUNT
    5959
    6060    def test_archive_last_layout_test_results(self):
  • trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py

    r85504 r85524  
    112112# FIXME: This should merge with AbstractEarlyWarningSystem once all the EWS
    113113# bots run tests.
    114 class AbstractTestingEWS(AbstractEarlyWarningSystem):
     114class AbstractTestingEWS(AbstractEarlyWarningSystem, EarlyWarningSystemTaskDelegate):
    115115    def begin_work_queue(self):
    116116        # FIXME: This violates abstraction
     
    218218
    219219
    220 class ChromiumLinuxEWS(AbstractChromiumEWS):
     220class ChromiumLinuxEWS(AbstractTestingEWS):
    221221    # FIXME: We should rename this command to cr-linux-ews, but that requires
    222222    #        a database migration. :(
    223223    name = "chromium-ews"
     224    port_name = "chromium-xvfb"
     225
     226    # FIXME: ChromiumLinuxEWS should inherit from AbstractChromiumEWS once
     227    # all the Chromium EWS bots run tests
     228    watchers = AbstractChromiumEWS.watchers
    224229
    225230
  • trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py

    r85504 r85524  
    7272class EarlyWarningSytemTest(QueuesTest):
    7373    def test_failed_builds(self):
    74         ews = ChromiumLinuxEWS()
     74        ews = ChromiumWindowsEWS()
    7575        ews.bind_to_tool(MockTool())
    7676        ews._build = lambda patch, first_run=False: False
     
    109109        self.assert_queue_outputs(ews, expected_stderr=expected_stderr, expected_exceptions=expected_exceptions)
    110110
    111     def test_testing_ews(self):
    112         class ConcreteTestingEWS(AbstractTestingEWS):
    113             name = "mock-testing-ews-name"
    114             port_name = "mock-port"
    115         ews = ConcreteTestingEWS()
    116         ews.port = MockPort()
     111    def _test_testing_ews(self, ews):
    117112        expected_stderr = {
    118113            "begin_work_queue": self._default_begin_work_queue_stderr(ews.name, MockTool().scm().checkout_root),
     
    120115""",
    121116            "next_work_item": "",
    122             "process_work_item": """MOCK: update_status: mock-testing-ews-name Pass
    123 MOCK: release_work_item: mock-testing-ews-name 197
    124 """,
     117            "process_work_item": """MOCK: update_status: %s Pass
     118MOCK: release_work_item: %s 197
     119""" % (ews.name, ews.name),
    125120            "handle_script_error": """ScriptError error message
    126121""",
    127122        }
    128         self.assert_queue_outputs(ews, expected_stderr=expected_stderr)
     123        tool = MockTool()
     124        tool.filesystem.write_text_file('/tmp/layout-test-results/unexpected_results.json', "")
     125        self.assert_queue_outputs(ews, expected_stderr=expected_stderr, tool=tool)
    129126
    130127    # FIXME: If all EWSes are going to output the same text, we
    131128    # could test them all in one method with a for loop over an array.
    132129    def test_chromium_linux_ews(self):
    133         self._test_ews(ChromiumLinuxEWS())
     130        self._test_testing_ews(ChromiumLinuxEWS())
    134131
    135132    def test_chromium_windows_ews(self):
  • trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py

    r85465 r85524  
    3333class RunTests(AbstractStep):
    3434    # FIXME: This knowledge really belongs in the commit-queue.
    35     NON_INTERACTIVE_FAILURE_LIMIT_COUNT = 10
     35    NON_INTERACTIVE_FAILURE_LIMIT_COUNT = 20
    3636
    3737    @classmethod
  • trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py

    r85464 r85524  
    8383MOCK run_and_throw_if_fail: ['Tools/Scripts/run-javascriptcore-tests']
    8484Running run-webkit-tests
    85 MOCK run_and_throw_if_fail: ['Tools/Scripts/run-webkit-tests', '--no-new-test-results', '--no-launch-safari', '--exit-after-n-failures=10', '--quiet']
     85MOCK run_and_throw_if_fail: ['Tools/Scripts/run-webkit-tests', '--no-new-test-results', '--no-launch-safari', '--exit-after-n-failures=20', '--quiet']
    8686"""
    8787        OutputCapture().assert_outputs(self, step.run, [{}], expected_stderr=expected_stderr)
Note: See TracChangeset for help on using the changeset viewer.