Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,14 @@ def enhance_inventory(request, tbinfo):
logger.error("Failed to set enhanced 'ansible_inventory' to request.config.option")


def pytest_cmdline_main(config):

# Filter out unnecessary logs generated by calling the ptfadapter plugin
dataplane_logger = logging.getLogger("dataplane")
if dataplane_logger:
dataplane_logger.setLevel(logging.ERROR)


def pytest_collection(session):
"""Workaround to reduce messy plugin logs generated during collection only

Expand Down
Loading