buildbot: Cleanup simulators after running tests
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 May 2017 15:33:18 +0000 (15:33 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 May 2017 15:33:18 +0000 (15:33 +0000)
https://bugs.webkit.org/show_bug.cgi?id=171679
<rdar://problem/31994361>

Reviewed by Aakash Jain.

We shutdown the simulator process between tests, but in some cases, this is not
sufficient. Explicitly shutdown every booted simulator.

* BuildSlaveSupport/kill-old-processes:
(main): Shutdown all booted simulators.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216244 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/kill-old-processes
Tools/ChangeLog

index 0f1a4fb..a9d6944 100755 (executable)
@@ -112,6 +112,8 @@ def main():
     if sys.platform == 'darwin':
         for task in tasksToKill + tasksToKillMac:
             os.system("killall -9 -v -m " + task)
+        # Shutdown any simulators
+        os.system("xcrun simctl shutdown booted")
         # Kill all instances of python executing run-webkit-tests
         os.system("ps aux | grep -E '.+/Python .+(run_webkit_tests|run-webkit-tests|mod_pywebsocket)' | grep -v grep | awk '{print $2}' | xargs kill")
     elif sys.platform == 'cygwin' or sys.platform == 'win32':
index b02679e..6029b85 100644 (file)
@@ -1,3 +1,17 @@
+2017-05-05  Jonathan Bedard  <jbedard@apple.com>
+
+        buildbot: Cleanup simulators after running tests
+        https://bugs.webkit.org/show_bug.cgi?id=171679
+        <rdar://problem/31994361>
+
+        Reviewed by Aakash Jain.
+
+        We shutdown the simulator process between tests, but in some cases, this is not
+        sufficient. Explicitly shutdown every booted simulator.
+
+        * BuildSlaveSupport/kill-old-processes:
+        (main): Shutdown all booted simulators.
+
 2017-05-05  Carlos Garcia Campos  <cgarcia@igalia.com>
 
         [GTK] Assertion failure in Inspector::RemoteInspector::setRemoteInspectorClient when disposing WebKitWebContext