Changeset 229381 in webkit


Ignore:
Timestamp:
Mar 7, 2018 4:16:54 PM (6 years ago)
Author:
Jonathan Bedard
Message:

webkitpy: Allow apple_additions() to define additional ports
https://bugs.webkit.org/show_bug.cgi?id=183412
<rdar://problem/38232353>

Reviewed by Aakash Jain.

  • Scripts/webkitpy/port/factory.py:

(PortFactory.get): Allow apple_additions to define port classes to be used
in run-webkit-tests.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r229380 r229381  
     12018-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
    1132018-03-07  Jonathan Bedard  <jbedard@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/port/factory.py

    r224413 r229381  
    119119        port_name = port_name or self._default_port(options)
    120120
     121        classes = []
    121122        for port_class in self.PORT_CLASSES:
    122123            module_name, class_name = port_class.rsplit('.', 1)
    123124            module = __import__(module_name, globals(), locals(), [], -1)
    124125            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:
    125131            if port_name.startswith(cls.port_name):
    126132                port_name = cls.determine_full_port_name(self._host, options, port_name)
Note: See TracChangeset for help on using the changeset viewer.