⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 252714 in webkit


Ignore:
Timestamp:
Nov 20, 2019, 3:21:10 PM (7 years ago)
Author:
Fujii Hironori
Message:

run-api-tests reports AssertionError os.pathsep not in value in _append_value_colon_separated in Cygwin Python
https://bugs.webkit.org/show_bug.cgi?id=204400

Reviewed by Jonathan Bedard.

r249500 changed Port.environment_for_api_tests to use
Port._append_value_colon_separated to append a build path to some
enviroment variables. _append_value_colon_separated has a
assertion to ensure the given value doesn't iclude ':'. However,
Port._build_path contains ':' on Cygwin Python.

Those enviroment variables are only for macOS and iOS. Move the code to darwin.py.

  • Scripts/webkitpy/port/base.py:

(Port.environment_for_api_tests):

  • Scripts/webkitpy/port/darwin.py:

(DarwinPort.environment_for_api_tests):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r252711 r252714  
     12019-11-20  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        run-api-tests reports AssertionError os.pathsep not in value in _append_value_colon_separated in Cygwin Python
     4        https://bugs.webkit.org/show_bug.cgi?id=204400
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        r249500 changed Port.environment_for_api_tests to use
     9        Port._append_value_colon_separated to append a build path to some
     10        enviroment variables. _append_value_colon_separated has a
     11        assertion to ensure the given value doesn't iclude ':'. However,
     12        Port._build_path contains ':' on Cygwin Python.
     13
     14        Those enviroment variables are only for macOS and iOS. Move the code to darwin.py.
     15
     16        * Scripts/webkitpy/port/base.py:
     17        (Port.environment_for_api_tests):
     18        * Scripts/webkitpy/port/darwin.py:
     19        (DarwinPort.environment_for_api_tests):
     20
    1212019-11-20  Jonathan Bedard  <jbedard@apple.com>
    222
  • trunk/Tools/Scripts/webkitpy/port/base.py

    r252616 r252714  
    261261
    262262    def environment_for_api_tests(self):
    263         build_root_path = str(self._build_path())
    264         environment = self.setup_environ_for_server()
    265         for name in ['DYLD_LIBRARY_PATH', '__XPC_DYLD_LIBRARY_PATH', 'DYLD_FRAMEWORK_PATH', '__XPC_DYLD_FRAMEWORK_PATH']:
    266             self._append_value_colon_separated(environment, name, build_root_path)
    267 
    268         return environment
     263        return self.setup_environ_for_server()
    269264
    270265    def _check_driver(self):
  • trunk/Tools/Scripts/webkitpy/port/darwin.py

    r251901 r252714  
    270270    def app_executable_from_bundle(self, app_bundle):
    271271        return self._plist_data_from_bundle(app_bundle, 'CFBundleExecutable')
     272
     273    def environment_for_api_tests(self):
     274        environment = super(DarwinPort, self).environment_for_api_tests()
     275        build_root_path = str(self._build_path())
     276        for name in ['DYLD_LIBRARY_PATH', '__XPC_DYLD_LIBRARY_PATH', 'DYLD_FRAMEWORK_PATH', '__XPC_DYLD_FRAMEWORK_PATH']:
     277            self._append_value_colon_separated(environment, name, build_root_path)
     278        return environment
Note: See TracChangeset for help on using the changeset viewer.