Title: [251793] trunk/Tools
Revision
251793
Author
[email protected]
Date
2019-10-30 12:43:36 -0700 (Wed, 30 Oct 2019)

Log Message

Simulator testers are filling up
https://bugs.webkit.org/show_bug.cgi?id=203056
<rdar://problem/56344905>

Reviewed by Aakash Jain.

* Scripts/webkitpy/xcode/simulated_device.py:
(SimulatedDeviceManager.tear_down): Remove some CoreSimulator temporary directories
after tearing down devices.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (251792 => 251793)


--- trunk/Tools/ChangeLog	2019-10-30 19:37:55 UTC (rev 251792)
+++ trunk/Tools/ChangeLog	2019-10-30 19:43:36 UTC (rev 251793)
@@ -1,3 +1,15 @@
+2019-10-30  Jonathan Bedard  <[email protected]>
+
+        Simulator testers are filling up
+        https://bugs.webkit.org/show_bug.cgi?id=203056
+        <rdar://problem/56344905>
+
+        Reviewed by Aakash Jain.
+
+        * Scripts/webkitpy/xcode/simulated_device.py:
+        (SimulatedDeviceManager.tear_down): Remove some CoreSimulator temporary directories
+        after tearing down devices.
+
 2019-10-30  Mark Lam  <[email protected]>
 
         Gardening: fixing broken build.

Modified: trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py (251792 => 251793)


--- trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py	2019-10-30 19:37:55 UTC (rev 251792)
+++ trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py	2019-10-30 19:43:36 UTC (rev 251793)
@@ -479,7 +479,14 @@
 
         SimulatedDeviceManager.INITIALIZED_DEVICES = None
 
+        # 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)
+        core_simulator_directory = host.filesystem.expanduser(host.filesystem.join('~', 'Library', 'Developer', 'CoreSimulator'))
+        host.filesystem.rmtree(host.filesystem.join(core_simulator_directory, 'Caches'))
+        host.filesystem.rmtree(host.filesystem.join(core_simulator_directory, 'Temp'))
 
+
 class SimulatedDevice(object):
     class DeviceState:
         CREATING = 0
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to