Title: [252738] trunk/Tools
- Revision
- 252738
- Author
- [email protected]
- Date
- 2019-11-21 09:08:21 -0800 (Thu, 21 Nov 2019)
Log Message
run-webkit-tests: Clean-up simulator processes after tearing down simulators
https://bugs.webkit.org/show_bug.cgi?id=204416
Reviewed by Simon Fraser.
* Scripts/webkitpy/common/system/executive_mock.py:
(MockExecutive.running_pids): Make function Python 3 compatible.
* Scripts/webkitpy/xcode/simulated_device.py:
(SimulatedDeviceManager.tear_down): Kill any CoreSimulator processes.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (252737 => 252738)
--- trunk/Tools/ChangeLog 2019-11-21 17:07:49 UTC (rev 252737)
+++ trunk/Tools/ChangeLog 2019-11-21 17:08:21 UTC (rev 252738)
@@ -1,3 +1,15 @@
+2019-11-21 Jonathan Bedard <[email protected]>
+
+ run-webkit-tests: Clean-up simulator processes after tearing down simulators
+ https://bugs.webkit.org/show_bug.cgi?id=204416
+
+ Reviewed by Simon Fraser.
+
+ * Scripts/webkitpy/common/system/executive_mock.py:
+ (MockExecutive.running_pids): Make function Python 3 compatible.
+ * Scripts/webkitpy/xcode/simulated_device.py:
+ (SimulatedDeviceManager.tear_down): Kill any CoreSimulator processes.
+
2019-11-21 Pablo Saavedra <[email protected]>
Fix Tools/Scripts/run-_javascript_core-tests after r252490
Modified: trunk/Tools/Scripts/webkitpy/common/system/executive_mock.py (252737 => 252738)
--- trunk/Tools/Scripts/webkitpy/common/system/executive_mock.py 2019-11-21 17:07:49 UTC (rev 252737)
+++ trunk/Tools/Scripts/webkitpy/common/system/executive_mock.py 2019-11-21 17:08:21 UTC (rev 252738)
@@ -88,7 +88,7 @@
def running_pids(self, process_name_filter):
running_pids = []
- for process_name, process_pid in self._running_pids.iteritems():
+ for process_name, process_pid in self._running_pids.items():
if process_name_filter(process_name):
running_pids.append(process_pid)
Modified: trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py (252737 => 252738)
--- trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py 2019-11-21 17:07:49 UTC (rev 252737)
+++ trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py 2019-11-21 17:08:21 UTC (rev 252738)
@@ -489,6 +489,10 @@
SimulatedDeviceManager.INITIALIZED_DEVICES = None
+ if SimulatedDeviceManager._managing_simulator_app:
+ for pid in host.executive.running_pids(lambda name: 'CoreSimulator.framework' in name):
+ host.executive.kill_process(pid)
+
# If we were managing the simulator, there are some cache files we need to remove
for directory in host.filesystem.glob('/tmp/com.apple.CoreSimulator.SimDevice.*'):
host.filesystem.rmtree(directory)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes