Subject: tests: Default --uitests to --verbosity=2 From: Cole Robinson crobinso@redhat.com Sat May 6 16:50:20 2023 -0400 Date: Sat May 6 16:50:20 2023 -0400: Git: a9cf4945b1dcd45fb205c4adc6f555f2fc47ecfa Signed-off-by: Cole Robinson diff --git a/tests/conftest.py b/tests/conftest.py index 3d1ca7d1..4a0fc1a0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -40,6 +40,10 @@ def pytest_addoption(parser): def pytest_ignore_collect(path, config): uitests_requested = config.getoption("--uitests") + # Default --uitests to --verbosity=2 + if uitests_requested: + config.option.verbose = max(2, config.option.verbose) + # Unless explicitly requested, ignore these tests if "test_dist.py" in str(path): return True