Changeset 252058 in webkit
- Timestamp:
- Nov 5, 2019 9:25:57 AM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r252052 r252058 1 2019-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 1 16 2019-11-05 Chris Lord <clord@igalia.com> 2 17 -
trunk/Tools/Scripts/webkitpy/port/base.py
r252050 r252058 1377 1377 if self._filesystem.exists(default_image_diff): 1378 1378 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') 1380 1380 _log.debug('ImageDiff not found at {}, using {} instead'.format(default_image_diff, built_image_diff)) 1381 1381 return built_image_diff -
trunk/Tools/Scripts/webkitpy/port/config.py
r246326 r252058 80 80 self._port_implementation = port_implementation 81 81 82 def build_directory(self, configuration ):82 def build_directory(self, configuration, for_host=False): 83 83 """Returns the path to the build directory for the configuration.""" 84 84 if configuration: … … 88 88 flags = [] 89 89 90 if self._port_implementation :90 if self._port_implementation and not for_host: 91 91 flags.append('--' + self._port_implementation) 92 92 -
trunk/Tools/Scripts/webkitpy/port/port_testcase.py
r251808 r252058 121 121 port_name = self.port_maker.determine_full_port_name(host, options, port_name) 122 122 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' 124 124 return port 125 125
Note: See TracChangeset
for help on using the changeset viewer.