mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 07:03:02 -06:00
tests: Wire pytest --log-level=debug to cli tests debug infrastructure
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
f086c75560
commit
92844eb2f8
@ -79,6 +79,7 @@ def pytest_collection_modifyitems(config, items):
|
||||
|
||||
|
||||
def pytest_configure(config):
|
||||
import tests
|
||||
from tests.utils import clistate
|
||||
|
||||
clistate.url_iso_only = config.getoption("--urls-iso-only")
|
||||
@ -86,3 +87,6 @@ def pytest_configure(config):
|
||||
clistate.url_skip_libosinfo = config.getoption("--urls-skip-libosinfo")
|
||||
clistate.url_force_libosinfo = config.getoption("--urls-force-libosinfo")
|
||||
clistate.regenerate_output = config.getoption("--regenerate-output")
|
||||
|
||||
clistate.debug = config.getoption("--log-level") == "debug"
|
||||
tests.setup_logging()
|
||||
|
Loading…
Reference in New Issue
Block a user