mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-01 12:22:34 +00:00
burn_tests: ensure burntest does not block pytest
pytest discovers test_*.py and *_test.py, so it should be hidden now in addition, the code should only run when the script is run explicitly, not when imported
This commit is contained in:
parent
49b71e8081
commit
3db07338ed
@ -37,6 +37,7 @@ def get_device():
|
|||||||
raise RuntimeError("No debuggable device found")
|
raise RuntimeError("No debuggable device found")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
wirelink = get_device()
|
wirelink = get_device()
|
||||||
client = TrezorClientDebugLink(wirelink)
|
client = TrezorClientDebugLink(wirelink)
|
||||||
client.open()
|
client.open()
|
Loading…
Reference in New Issue
Block a user