on xenial help sign in
Remove the mir socket when starting tests in case it's left over.
5bd8f86Michał Sawicz
tests/autopilot/unity8/shell/tests/__init__.py+6
@@ -164,6 +164,12 @@ class UnityTestCase(AutopilotTestCase):
164 if self._qml_mock_enabled:
164 if self._qml_mock_enabled:
165 self._setup_extra_mock_environment_patch()
165 self._setup_extra_mock_environment_patch()
166
166
167+ # FIXME: we shouldn't be doing this
168+ try:
169+ os.unlink(os.getenv('MIR_SOCKET', "/tmp/mir_socket"))
170+ except OSError:
171+ pass
172+
167 app_proxy = self.launch_test_application(
173 app_proxy = self.launch_test_application(
168 binary_path,
174 binary_path,
169 *self.unity_geometry_args,
175 *self.unity_geometry_args,