Changeset 51253 in webkit
- Timestamp:
- Nov 20, 2009 1:03:12 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51249 r51253 1 2009-11-20 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Pass the port information to the child process 6 https://bugs.webkit.org/show_bug.cgi?id=31736 7 8 We need to do this so the child process knows what to build! 9 10 * Scripts/bugzilla-tool: 11 * Scripts/modules/landingsequence.py: 12 * Scripts/modules/webkitport.py: 13 * Scripts/modules/webkitport_unittest.py: 14 1 15 2009-11-20 Adam Barth <abarth@webkit.org> 2 16 -
trunk/WebKitTools/Scripts/bugzilla-tool
r51249 r51253 762 762 AbstractTryQueue.__init__(self, options) 763 763 764 def begin_work_queue(self): 765 AbstractTryQueue.begin_work_queue(self) 766 self.port = WebKitPort.port(self.options) 767 764 768 def should_proceed_with_work_item(self, patch): 765 769 # FIXME: We should check whether we're currently able to build! … … 767 771 768 772 def process_work_item(self, patch): 769 self.run_bugzilla_tool(["build-attachment", "--force-clean", patch["id"]])773 self.run_bugzilla_tool(["build-attachment", self.port.flag(), "--force-clean", patch["id"]]) 770 774 771 775 -
trunk/WebKitTools/Scripts/modules/landingsequence.py
r51243 r51253 41 41 self._options = options 42 42 self._tool = tool 43 self._port = WebKitPort. get_port(self._options)43 self._port = WebKitPort.port(self._options) 44 44 45 45 def run(self): -
trunk/WebKitTools/Scripts/modules/webkitport.py
r51231 r51253 42 42 def port_options(): 43 43 return [ 44 make_option("-- qt", action="store_true", dest="qt", default=False, help="Use the Qt port."),44 make_option("--port", action="store", dest="port", default=None, help="Specify a port (e.g., mac, qt, gtk, ...)."), 45 45 ] 46 46 47 47 @staticmethod 48 def get_port(options): 49 if options.qt: 48 def port(options): 49 if options.port == "mac": 50 return MacPort 51 if options.port == "qt": 50 52 return QtPort 53 # FIXME: We should default to WinPort on Windows. 51 54 return MacPort 52 55 53 56 @classmethod 54 57 def name(cls): 58 raise NotImplementedError, "subclasses must implement" 59 60 @classmethod 61 def flag(cls): 55 62 raise NotImplementedError, "subclasses must implement" 56 63 … … 69 76 return "Mac" 70 77 78 @classmethod 79 def flag(cls): 80 return "--port=mac" 81 71 82 72 83 class QtPort(WebKitPort): … … 76 87 77 88 @classmethod 89 def flag(cls): 90 return "--port=qt" 91 92 @classmethod 78 93 def build_webkit_command(cls): 79 94 command = WebKitPort.build_webkit_command() -
trunk/WebKitTools/Scripts/modules/webkitport_unittest.py
r51231 r51253 35 35 def test_mac_port(self): 36 36 self.assertEquals(MacPort.name(), "Mac") 37 self.assertEquals(MacPort.flag(), "--port=mac") 37 38 self.assertEquals(MacPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) 38 39 self.assertEquals(MacPort.build_webkit_command(), [WebKitPort.script_path("build-webkit")]) … … 40 41 def test_qt_port(self): 41 42 self.assertEquals(QtPort.name(), "Qt") 43 self.assertEquals(QtPort.flag(), "--port=qt") 42 44 self.assertEquals(QtPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) 43 45 self.assertEquals(QtPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--qt"])
Note: See TracChangeset
for help on using the changeset viewer.