1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Fix CID file handling to prevent directory creation (#6225)

* Fix CID file handling to prevent directory creation

It seems that under certain conditions Docker creates a directory
instead of a file for the CID file. This change ensures that
the CID file is always created as a file, and any existing directory
is removed before creating the file.

* Fix tests

* Fix pytest
This commit is contained in:
Stefan Agner
2025-10-02 09:24:19 +02:00
committed by GitHub
parent 5779b567f1
commit f3e1e0f423
4 changed files with 62 additions and 4 deletions

View File

@@ -318,7 +318,10 @@ def test_not_journald_addon(
async def test_addon_run_docker_error(
coresys: CoreSys, addonsdata_system: dict[str, Data], path_extern
coresys: CoreSys,
addonsdata_system: dict[str, Data],
path_extern,
tmp_supervisor_data: Path,
):
"""Test docker error when addon is run."""
await coresys.dbus.timedate.connect(coresys.dbus.bus)