test: setup logging in topology suites

Make it possible to use logging from within tests in the topology
suites. The tests are executed using `pytest`, which uses a `pytest.ini`
file for logging configuration.

Also cleanup the `pytest.ini` files a bit.
This commit is contained in:
Kamil Braun
2022-09-16 16:16:04 +02:00
parent 348582c4c8
commit fd986bfed1
2 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
# Pytest configuration file. If we don't have one in this directory,
# pytest will look for one in our ancestor directories, and may find
# something irrelevant. So we should have one here, even if empty.
[pytest]
# Use shared fixtures from the parent dir
addopts = --confcutdir ..
asyncio_mode = auto
log_cli = true
log_format = %(asctime)s %(levelname)s %(message)s
log_date_format = %Y-%m-%d %H:%M:%S

View File

@@ -2,6 +2,8 @@
# pytest will look for one in our ancestor directories, and may find
# something irrelevant. So we should have one here, even if empty.
[pytest]
# Use shared fixtures from the parent dir
addopts = --confcutdir ..
asyncio_mode = auto
log_cli = true
log_format = %(asctime)s %(levelname)s %(message)s
log_date_format = %Y-%m-%d %H:%M:%S