test.py: Make --log-level work again.

Was regressed away. Just apply the values to pytest invocation
This commit is contained in:
Calle Wilund
2026-05-19 15:08:32 +02:00
parent 47524d8d17
commit f0eadcdd64

View File

@@ -369,6 +369,8 @@ def run_pytest(options: argparse.Namespace) -> int:
args.append('--save-log-on-success')
if options.markers:
args.append(f'-m={options.markers}')
if options.log_level:
args.append(f'--log-level={options.log_level}')
args.extend(files_to_run)
exit_code = pytest.main(args=args)