Remove the mir socket when starting tests in case it's left over.
commit5bd8f8609853dcf37bf80d34a6eea5ef4e96ab01
authorMichał Sawicz <michal.sawicz@canonical.com>
dateWed 9 Oct 2013, 18:12 (13 years ago)
parentd763a69
tests/autopilot/unity8/shell/tests/__init__.py+6
@@ -164,6 +164,12 @@ class UnityTestCase(AutopilotTestCase):
164164 if self._qml_mock_enabled:
165165 self._setup_extra_mock_environment_patch()
166166
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+
167173 app_proxy = self.launch_test_application(
168174 binary_path,
169175 *self.unity_geometry_args,