Changeset 229381 in webkit
- Timestamp:
- Mar 7, 2018 4:16:54 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r229380 r229381 1 2018-03-07 Jonathan Bedard <jbedard@apple.com> 2 3 webkitpy: Allow apple_additions() to define additional ports 4 https://bugs.webkit.org/show_bug.cgi?id=183412 5 <rdar://problem/38232353> 6 7 Reviewed by Aakash Jain. 8 9 * Scripts/webkitpy/port/factory.py: 10 (PortFactory.get): Allow apple_additions to define port classes to be used 11 in run-webkit-tests. 12 1 13 2018-03-07 Jonathan Bedard <jbedard@apple.com> 2 14 -
trunk/Tools/Scripts/webkitpy/port/factory.py
r224413 r229381 119 119 port_name = port_name or self._default_port(options) 120 120 121 classes = [] 121 122 for port_class in self.PORT_CLASSES: 122 123 module_name, class_name = port_class.rsplit('.', 1) 123 124 module = __import__(module_name, globals(), locals(), [], -1) 124 125 cls = module.__dict__[class_name] 126 classes.append(cls) 127 if config.apple_additions() and hasattr(config.apple_additions(), 'ports'): 128 classes += config.apple_additions().ports() 129 130 for cls in classes: 125 131 if port_name.startswith(cls.port_name): 126 132 port_name = cls.determine_full_port_name(self._host, options, port_name)
Note: See TracChangeset
for help on using the changeset viewer.