Changeset 85524 in webkit
- Timestamp:
- May 2, 2011 2:43:29 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r85516 r85524 1 2011-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 1 16 2011-05-02 Martin Robinson <mrobinson@igalia.com> 2 17 -
trunk/Tools/Scripts/webkitpy/tool/bot/layouttestresultsreader_unittest.py
r84689 r85524 56 56 results = reader.results() 57 57 self.assertNotEquals(results, None) 58 self.assertEquals(results.failure_limit_count(), 10) # This value matches RunTests.NON_INTERACTIVE_FAILURE_LIMIT_COUNT58 self.assertEquals(results.failure_limit_count(), 20) # This value matches RunTests.NON_INTERACTIVE_FAILURE_LIMIT_COUNT 59 59 60 60 def test_archive_last_layout_test_results(self): -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py
r85504 r85524 112 112 # FIXME: This should merge with AbstractEarlyWarningSystem once all the EWS 113 113 # bots run tests. 114 class AbstractTestingEWS(AbstractEarlyWarningSystem ):114 class AbstractTestingEWS(AbstractEarlyWarningSystem, EarlyWarningSystemTaskDelegate): 115 115 def begin_work_queue(self): 116 116 # FIXME: This violates abstraction … … 218 218 219 219 220 class ChromiumLinuxEWS(Abstract ChromiumEWS):220 class ChromiumLinuxEWS(AbstractTestingEWS): 221 221 # FIXME: We should rename this command to cr-linux-ews, but that requires 222 222 # a database migration. :( 223 223 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 224 229 225 230 -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py
r85504 r85524 72 72 class EarlyWarningSytemTest(QueuesTest): 73 73 def test_failed_builds(self): 74 ews = Chromium LinuxEWS()74 ews = ChromiumWindowsEWS() 75 75 ews.bind_to_tool(MockTool()) 76 76 ews._build = lambda patch, first_run=False: False … … 109 109 self.assert_queue_outputs(ews, expected_stderr=expected_stderr, expected_exceptions=expected_exceptions) 110 110 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): 117 112 expected_stderr = { 118 113 "begin_work_queue": self._default_begin_work_queue_stderr(ews.name, MockTool().scm().checkout_root), … … 120 115 """, 121 116 "next_work_item": "", 122 "process_work_item": """MOCK: update_status: mock-testing-ews-namePass123 MOCK: release_work_item: mock-testing-ews-name197124 """ ,117 "process_work_item": """MOCK: update_status: %s Pass 118 MOCK: release_work_item: %s 197 119 """ % (ews.name, ews.name), 125 120 "handle_script_error": """ScriptError error message 126 121 """, 127 122 } 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) 129 126 130 127 # FIXME: If all EWSes are going to output the same text, we 131 128 # could test them all in one method with a for loop over an array. 132 129 def test_chromium_linux_ews(self): 133 self._test_ ews(ChromiumLinuxEWS())130 self._test_testing_ews(ChromiumLinuxEWS()) 134 131 135 132 def test_chromium_windows_ews(self): -
trunk/Tools/Scripts/webkitpy/tool/steps/runtests.py
r85465 r85524 33 33 class RunTests(AbstractStep): 34 34 # FIXME: This knowledge really belongs in the commit-queue. 35 NON_INTERACTIVE_FAILURE_LIMIT_COUNT = 1035 NON_INTERACTIVE_FAILURE_LIMIT_COUNT = 20 36 36 37 37 @classmethod -
trunk/Tools/Scripts/webkitpy/tool/steps/steps_unittest.py
r85464 r85524 83 83 MOCK run_and_throw_if_fail: ['Tools/Scripts/run-javascriptcore-tests'] 84 84 Running 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']85 MOCK run_and_throw_if_fail: ['Tools/Scripts/run-webkit-tests', '--no-new-test-results', '--no-launch-safari', '--exit-after-n-failures=20', '--quiet'] 86 86 """ 87 87 OutputCapture().assert_outputs(self, step.run, [{}], expected_stderr=expected_stderr)
Note: See TracChangeset
for help on using the changeset viewer.