tests: Default --uitests to --verbosity=2

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2023-05-06 16:50:20 -04:00
parent 6030049cd7
commit a9cf4945b1

View File

@ -40,6 +40,10 @@ def pytest_addoption(parser):
def pytest_ignore_collect(path, config): def pytest_ignore_collect(path, config):
uitests_requested = config.getoption("--uitests") 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 # Unless explicitly requested, ignore these tests
if "test_dist.py" in str(path): if "test_dist.py" in str(path):
return True return True