Changeset 107374 in webkit
- Timestamp:
- Feb 10, 2012 12:05:53 AM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r107361 r107374 1 2012-02-09 Philippe Normand <pnormand@igalia.com> 2 3 [GTK] EWS command-line option to run the tests 4 https://bugs.webkit.org/show_bug.cgi?id=78211 5 6 Reviewed by Adam Barth. 7 8 New --run-tests option (defaults to False) for the EWS commands. 9 10 * Scripts/webkitpy/tool/commands/earlywarningsystem.py: 11 (AbstractEarlyWarningSystem): 12 (AbstractEarlyWarningSystem.__init__): 13 (AbstractEarlyWarningSystem.review_patch): 14 (ChromiumLinuxEWS): 15 * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: 16 (EarlyWarningSytemTest._test_builder_ews): 17 1 18 2012-02-09 Eric Seidel <eric@webkit.org> 2 19 -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem.py
r107297 r107374 27 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 29 from optparse import make_option 30 29 31 from webkitpy.common.config.committers import CommitterList 30 32 from webkitpy.common.config.ports import DeprecatedPort … … 40 42 class AbstractEarlyWarningSystem(AbstractReviewQueue, EarlyWarningSystemTaskDelegate): 41 43 _build_style = "release" 42 # FIXME: Switch _ run_tests from opt-in to opt-out once more bots are ready to run tests.43 _ run_tests = False44 # FIXME: Switch _default_run_tests from opt-in to opt-out once more bots are ready to run tests. 45 _default_run_tests = False 44 46 45 47 def __init__(self): 46 AbstractReviewQueue.__init__(self) 48 options = [make_option("--run-tests", action="store_true", dest="run_tests", default=self._default_run_tests, help="Run the Layout tests for each patch")] 49 AbstractReviewQueue.__init__(self, options=options) 47 50 self.port = DeprecatedPort.port(self.port_name) 48 51 … … 74 77 75 78 def review_patch(self, patch): 76 task = EarlyWarningSystemTask(self, patch, self._ run_tests)79 task = EarlyWarningSystemTask(self, patch, self._options.run_tests) 77 80 if not task.validate(): 78 81 self._did_error(patch, "%s did not process patch." % self.name) … … 180 183 name = "chromium-ews" 181 184 port_name = "chromium-xvfb" 182 _ run_tests = True185 _default_run_tests = True 183 186 184 187 -
trunk/Tools/Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py
r107302 r107374 68 68 def _test_builder_ews(self, ews): 69 69 ews.bind_to_tool(MockTool()) 70 self.assert_queue_outputs(ews, expected_stderr=self._default_expected_stderr(ews)) 70 options = Mock() 71 options.port = None 72 options.run_tests = ews._default_run_tests 73 self.assert_queue_outputs(ews, expected_stderr=self._default_expected_stderr(ews), options=options) 71 74 72 75 def _test_testing_ews(self, ews):
Note: See TracChangeset
for help on using the changeset viewer.