Title: [212297] trunk/Tools
- Revision
- 212297
- Author
- [email protected]
- Date
- 2017-02-14 08:33:24 -0800 (Tue, 14 Feb 2017)
Log Message
run-webkit-tests for iOS Simulator always complains that stopping WebKitTestRunnerApp.app times out
https://bugs.webkit.org/show_bug.cgi?id=168150
Reviewed by Alexey Proskuryakov.
* Scripts/webkitpy/port/simulator_process.py:
(SimulatorProcess.stop): Close app before calling ServerProcess's stop.
(SimulatorProcess._kill): Move closing of app into stop().
* Scripts/webkitpy/xcode/simulator.py:
(Device.launch_app):
(Device.terminate_app): Deleted.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (212296 => 212297)
--- trunk/Tools/ChangeLog 2017-02-14 16:31:57 UTC (rev 212296)
+++ trunk/Tools/ChangeLog 2017-02-14 16:33:24 UTC (rev 212297)
@@ -1,3 +1,17 @@
+2017-02-14 Jonathan Bedard <[email protected]>
+
+ run-webkit-tests for iOS Simulator always complains that stopping WebKitTestRunnerApp.app times out
+ https://bugs.webkit.org/show_bug.cgi?id=168150
+
+ Reviewed by Alexey Proskuryakov.
+
+ * Scripts/webkitpy/port/simulator_process.py:
+ (SimulatorProcess.stop): Close app before calling ServerProcess's stop.
+ (SimulatorProcess._kill): Move closing of app into stop().
+ * Scripts/webkitpy/xcode/simulator.py:
+ (Device.launch_app):
+ (Device.terminate_app): Deleted.
+
2017-02-14 Carlos Garcia Campos <[email protected]>
REGRESSION(r212192): [GTK] Broke downloads API tests
Modified: trunk/Tools/Scripts/webkitpy/port/simulator_process.py (212296 => 212297)
--- trunk/Tools/Scripts/webkitpy/port/simulator_process.py 2017-02-14 16:31:57 UTC (rev 212296)
+++ trunk/Tools/Scripts/webkitpy/port/simulator_process.py 2017-02-14 16:33:24 UTC (rev 212297)
@@ -129,6 +129,6 @@
self._proc = SimulatorProcess.Popen(self._pid, stdin, stdout, stderr)
- def _kill(self):
- self._device.terminate_app(self._bundle_id)
- super(SimulatorProcess, self)._kill()
+ def stop(self, timeout_secs=3.0):
+ os.kill(self._pid, signal.SIGTERM)
+ super(SimulatorProcess, self).stop(timeout_secs)
Modified: trunk/Tools/Scripts/webkitpy/xcode/simulator.py (212296 => 212297)
--- trunk/Tools/Scripts/webkitpy/xcode/simulator.py 2017-02-14 16:31:57 UTC (rev 212296)
+++ trunk/Tools/Scripts/webkitpy/xcode/simulator.py 2017-02-14 16:33:24 UTC (rev 212297)
@@ -309,9 +309,6 @@
raise RuntimeError('Failed to find process id for {}: {}'.format(bundle_id, output))
return int(match.group('pid'))
- def terminate_app(self, bundle_id):
- return not self._host.executive.run_command(['xcrun', 'simctl', 'terminate', self.udid, bundle_id], return_exit_code=True)
-
def __eq__(self, other):
return self.udid == other.udid
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes