Change logging to do rollover() instead of rotate() (#55177)
* Change to rollover from rotate. * Remove test log files.
This commit is contained in:
parent
d984e137b8
commit
3a0a8da648
3 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Test the bootstrapping."""
|
||||
# pylint: disable=protected-access
|
||||
import asyncio
|
||||
import glob
|
||||
import os
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
|
@ -69,6 +70,10 @@ async def test_async_enable_logging(hass):
|
|||
log_file="test.log",
|
||||
)
|
||||
mock_async_activate_log_queue_handler.assert_called_once()
|
||||
for f in glob.glob("test.log*"):
|
||||
os.remove(f)
|
||||
for f in glob.glob("testing_config/home-assistant.log*"):
|
||||
os.remove(f)
|
||||
|
||||
|
||||
async def test_load_hassio(hass):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue