@@ -165,8 +165,13 @@ class UnityTestCase(AutopilotTestCase):
165 self._setup_extra_mock_environment_patch()
165 self._setup_extra_mock_environment_patch()
167 # FIXME: we shouldn't be doing this
167 # FIXME: we shouldn't be doing this
168+ # $MIR_SOCKET, fallback to $XDG_RUNTIME_DIR/mir_socket and /tmp/mir_socket as last resort
169− os.unlink(os.getenv('MIR_SOCKET', "/tmp/mir_socket"))
170+ os.unlink(os.getenv('MIR_SOCKET', os.path.join(os.getenv('XDG_RUNTIME_DIR'), "mir_socket")))
174+ os.unlink("/tmp/mir_socket")
170 except OSError:
175 except OSError: