Changeset 252058 in webkit


Ignore:
Timestamp:
Nov 5, 2019 9:25:57 AM (4 years ago)
Author:
Jonathan Bedard
Message:

webkitpy: Build ImageDiff if it is missing (Follow-fix)
https://bugs.webkit.org/show_bug.cgi?id=183422

Unreviewed infrastructure fix.

  • Scripts/webkitpy/port/base.py:

(Port._path_to_image_diff): Use the host build directory.

  • Scripts/webkitpy/port/config.py:

(Config.build_directory): Allow the caller to ignore the port argument, which will return the default
build directory for the host running the script.

  • Scripts/webkitpy/port/port_testcase.py:

(PortTestCase.make_port):

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r252052 r252058  
     12019-11-05  Jonathan Bedard  <jbedard@apple.com>
     2
     3        webkitpy: Build ImageDiff if it is missing (Follow-fix)
     4        https://bugs.webkit.org/show_bug.cgi?id=183422
     5
     6        Unreviewed infrastructure fix.
     7
     8        * Scripts/webkitpy/port/base.py:
     9        (Port._path_to_image_diff): Use the host build directory.
     10        * Scripts/webkitpy/port/config.py:
     11        (Config.build_directory): Allow the caller to ignore the port argument, which will return the default
     12        build directory for the host running the script.
     13        * Scripts/webkitpy/port/port_testcase.py:
     14        (PortTestCase.make_port):
     15
    1162019-11-05  Chris Lord  <clord@igalia.com>
    217
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r252050 r252058  
    13771377        if self._filesystem.exists(default_image_diff):
    13781378            return default_image_diff
    1379         built_image_diff = self._filesystem.join(self._config.build_directory(self.get_option('configuration')), 'ImageDiff')
     1379        built_image_diff = self._filesystem.join(self._config.build_directory(self.get_option('configuration'), for_host=True), 'ImageDiff')
    13801380        _log.debug('ImageDiff not found at {}, using {} instead'.format(default_image_diff, built_image_diff))
    13811381        return built_image_diff
  • trunk/Tools/Scripts/webkitpy/port/config.py

    r246326 r252058  
    8080        self._port_implementation = port_implementation
    8181
    82     def build_directory(self, configuration):
     82    def build_directory(self, configuration, for_host=False):
    8383        """Returns the path to the build directory for the configuration."""
    8484        if configuration:
     
    8888            flags = []
    8989
    90         if self._port_implementation:
     90        if self._port_implementation and not for_host:
    9191            flags.append('--' + self._port_implementation)
    9292
  • trunk/Tools/Scripts/webkitpy/port/port_testcase.py

    r251808 r252058  
    121121        port_name = self.port_maker.determine_full_port_name(host, options, port_name)
    122122        port = self.port_maker(host, port_name, options=options, **kwargs)
    123         port._config.build_directory = lambda configuration: '/mock-build'
     123        port._config.build_directory = lambda configuration, for_host=False: '/mock-build'
    124124        return port
    125125
Note: See TracChangeset for help on using the changeset viewer.