Skip to content

Commit

Permalink
tests: Setup logging properly
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Jan 22, 2025
1 parent ade0e61 commit 60dd86d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import mkosi.resources
from mkosi.config import parse_config
from mkosi.distributions import Distribution, detect_distribution
from mkosi.log import log_setup
from mkosi.util import resource_path

from . import ImageConfig, ci_group
Expand Down Expand Up @@ -57,3 +58,8 @@ def config(request: Any) -> ImageConfig:
def ci_sections(request: Any) -> Iterator[None]:
with ci_group(request.node.name):
yield


@pytest.fixture(scope="session", autouse=True)
def logging() -> None:
log_setup()

0 comments on commit 60dd86d

Please sign in to comment.