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

Changeset 285779 in webkit


Ignore:
Timestamp:
Nov 13, 2021, 1:58:50 PM (5 years ago)
Author:
Jonathan Bedard
Message:

Unreviewed, reverting r285772.

Ownership issues in some XCode installs

Reverted changeset:

"[webkitpy] Symlink daemons into simulator runtime root"
https://bugs.webkit.org/show_bug.cgi?id=233080
https://commits.webkit.org/r285772

Location:
trunk/Tools
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r285776 r285779  
     12021-11-13  Jonathan Bedard  <jbedard@apple.com>
     2
     3        Unreviewed, reverting r285772.
     4
     5        Ownership issues in some XCode installs
     6
     7        Reverted changeset:
     8
     9        "[webkitpy] Symlink daemons into simulator runtime root"
     10        https://bugs.webkit.org/show_bug.cgi?id=233080
     11        https://commits.webkit.org/r285772
     12
    1132021-11-13  Tyler Wilcock  <tyler_w@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/api_tests/manager.py

    r285772 r285779  
    153153        if 'simulator' in self._port.port_name:
    154154            SimulatedDeviceManager.initialize_devices(DeviceRequest(self._port.DEVICE_TYPE, allow_incomplete_match=True), self.host, simulator_ui=False)
    155 
    156             # A Daemons executable path must be located within the runtime root.
    157             roots = {
    158                 device.platform_device.runtime.root for device in SimulatedDeviceManager.INITIALIZED_DEVICES
    159                 if device.platform_device.runtime and device.platform_device.runtime.root
    160             }
    161             fs = self._port.host.filesystem
    162             for root in roots:
    163                 _log.debug("Linking Daemons into runtime root '{}'".format(root))
    164                 for file in fs.files_under(self._port.path_to_daemons()):
    165                     target = fs.join(root, 'usr', 'local', 'bin', 'webkit-testing', fs.basename(file))
    166                     fs.maybe_make_directory(fs.dirname(target))
    167                     if fs.isfile(target):
    168                         fs.remove(target)
    169                     fs.symlink(file, target)
    170 
    171155        elif 'device' in self._port.port_name:
    172156            raise RuntimeError('Running api tests on {} is not supported'.format(self._port.port_name))
  • trunk/Tools/Scripts/webkitpy/common/system/filesystem.py

    r285772 r285779  
    340340        else:
    341341            self.copyfile(source, destination)
    342 
    343     def symlink(self, *args, **kwargs):
    344         os.symlink(*args, **kwargs)
  • trunk/Tools/Scripts/webkitpy/common/system/filesystem_mock.py

    r285772 r285779  
    437437        self.move(source, destination)
    438438
    439     def symlink(self, src, dst):
    440         self.move(src, dst)
    441 
    442439
    443440class WritableBinaryFileObject(object):
  • trunk/Tools/Scripts/webkitpy/port/darwin.py

    r285772 r285779  
    8282    def _path_to_webcore_library(self):
    8383        return self._build_path('WebCore.framework/Versions/A/WebCore')
    84 
    85     def path_to_daemons(self):
    86         return self._build_path('WebKit.framework/Daemons')
    8784
    8885    def show_results_html_file(self, results_filename):
  • trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py

    r285772 r285779  
    6161            self.identifier = runtime_dict['identifier']
    6262            self.name = runtime_dict['name']
    63             self.root = runtime_dict.get('runtimeRoot')
    6463
    6564    AVAILABLE_RUNTIMES = []
     
    125124            device_type=device_type,
    126125            build_version=runtime.build_version,
    127             runtime=runtime,
    128126        ))
    129127        SimulatedDeviceManager.AVAILABLE_DEVICES.append(result)
     
    547545    }
    548546
    549     def __init__(self, name, udid, host, device_type, build_version, runtime):
     547    def __init__(self, name, udid, host, device_type, build_version):
    550548        assert device_type.software_version
    551549
     
    554552        self.device_type = device_type
    555553        self.build_version = build_version
    556         self.runtime = runtime
    557554        self._state = SimulatedDevice.DeviceState.SHUTTING_DOWN
    558555
  • trunk/Tools/Scripts/webkitpy/xcode/simulated_device_unittest.py

    r285772 r285779  
    169169     "name" : "iOS 9.3",
    170170     "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-9-3",
    171      "version" : "9.3",
    172      "runtimeRoot" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.3.simruntime/Contents/Resources/RuntimeRoot"
     171     "version" : "9.3"
    173172   },
    174173   {
     
    177176     "name" : "iOS 11.0",
    178177     "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-0",
    179      "version" : "11.0.1",
    180      "runtimeRoot" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 11.0.1.simruntime/Contents/Resources/RuntimeRoot"
     178     "version" : "11.0.1"
    181179   },
    182180   {
     
    185183     "name" : "tvOS 11.0",
    186184     "identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-0",
    187      "version" : "11.0",
    188      "runtimeRoot" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS 11.simruntime/Contents/Resources/RuntimeRoot"
     185     "version" : "11.0"
    189186   },
    190187   {
     
    193190     "name" : "watchOS 4.0",
    194191     "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-0",
    195      "version" : "4.0",
    196      "runtimeRoot" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS 4.simruntime/Contents/Resources/RuntimeRoot"
     192     "version" : "4.0"
    197193   },
    198194   {
     
    201197     "name" : "iOS 12.0",
    202198     "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-0",
    203      "version" : "12.0",
    204      "runtimeRoot" : "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 12.simruntime/Contents/Resources/RuntimeRoot"
     199     "version" : "12.0"
    205200   }
    206201 ],
Note: See TracChangeset for help on using the changeset viewer.