Changeset 285779 in webkit
- Timestamp:
- Nov 13, 2021, 1:58:50 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 7 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/api_tests/manager.py (modified) (1 diff)
-
Scripts/webkitpy/common/system/filesystem.py (modified) (1 diff)
-
Scripts/webkitpy/common/system/filesystem_mock.py (modified) (1 diff)
-
Scripts/webkitpy/port/darwin.py (modified) (1 diff)
-
Scripts/webkitpy/xcode/simulated_device.py (modified) (4 diffs)
-
Scripts/webkitpy/xcode/simulated_device_unittest.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r285776 r285779 1 2021-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 1 13 2021-11-13 Tyler Wilcock <tyler_w@apple.com> 2 14 -
trunk/Tools/Scripts/webkitpy/api_tests/manager.py
r285772 r285779 153 153 if 'simulator' in self._port.port_name: 154 154 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_DEVICES159 if device.platform_device.runtime and device.platform_device.runtime.root160 }161 fs = self._port.host.filesystem162 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 171 155 elif 'device' in self._port.port_name: 172 156 raise RuntimeError('Running api tests on {} is not supported'.format(self._port.port_name)) -
trunk/Tools/Scripts/webkitpy/common/system/filesystem.py
r285772 r285779 340 340 else: 341 341 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 437 437 self.move(source, destination) 438 438 439 def symlink(self, src, dst):440 self.move(src, dst)441 442 439 443 440 class WritableBinaryFileObject(object): -
trunk/Tools/Scripts/webkitpy/port/darwin.py
r285772 r285779 82 82 def _path_to_webcore_library(self): 83 83 return self._build_path('WebCore.framework/Versions/A/WebCore') 84 85 def path_to_daemons(self):86 return self._build_path('WebKit.framework/Daemons')87 84 88 85 def show_results_html_file(self, results_filename): -
trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py
r285772 r285779 61 61 self.identifier = runtime_dict['identifier'] 62 62 self.name = runtime_dict['name'] 63 self.root = runtime_dict.get('runtimeRoot')64 63 65 64 AVAILABLE_RUNTIMES = [] … … 125 124 device_type=device_type, 126 125 build_version=runtime.build_version, 127 runtime=runtime,128 126 )) 129 127 SimulatedDeviceManager.AVAILABLE_DEVICES.append(result) … … 547 545 } 548 546 549 def __init__(self, name, udid, host, device_type, build_version , runtime):547 def __init__(self, name, udid, host, device_type, build_version): 550 548 assert device_type.software_version 551 549 … … 554 552 self.device_type = device_type 555 553 self.build_version = build_version 556 self.runtime = runtime557 554 self._state = SimulatedDevice.DeviceState.SHUTTING_DOWN 558 555 -
trunk/Tools/Scripts/webkitpy/xcode/simulated_device_unittest.py
r285772 r285779 169 169 "name" : "iOS 9.3", 170 170 "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" 173 172 }, 174 173 { … … 177 176 "name" : "iOS 11.0", 178 177 "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" 181 179 }, 182 180 { … … 185 183 "name" : "tvOS 11.0", 186 184 "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" 189 186 }, 190 187 { … … 193 190 "name" : "watchOS 4.0", 194 191 "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" 197 193 }, 198 194 { … … 201 197 "name" : "iOS 12.0", 202 198 "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" 205 200 } 206 201 ],
Note:
See TracChangeset
for help on using the changeset viewer.