mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 13:42:41 +00:00
test: allow dumping protocol packets via -vvv
[no changelog]
This commit is contained in:
parent
64d8c18865
commit
9d1d06218c
@ -467,9 +467,10 @@ def pytest_configure(config: "Config") -> None:
|
|||||||
for line in f:
|
for line in f:
|
||||||
config.addinivalue_line("markers", line.strip())
|
config.addinivalue_line("markers", line.strip())
|
||||||
|
|
||||||
# enable debug
|
# enable debug if `-v` flag is passed (use multiple times for higher verbosity)
|
||||||
if config.getoption("verbose"):
|
verbosity = config.getoption("verbose")
|
||||||
log.enable_debug_output()
|
if verbosity:
|
||||||
|
log.enable_debug_output(verbosity)
|
||||||
|
|
||||||
idval_orig = IdMaker._idval_from_value
|
idval_orig = IdMaker._idval_from_value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user