mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-01 20:32:35 +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,15 +37,16 @@ def get_device():
|
|||||||
raise RuntimeError("No debuggable device found")
|
raise RuntimeError("No debuggable device found")
|
||||||
|
|
||||||
|
|
||||||
wirelink = get_device()
|
if __name__ == "__main__":
|
||||||
client = TrezorClientDebugLink(wirelink)
|
wirelink = get_device()
|
||||||
client.open()
|
client = TrezorClientDebugLink(wirelink)
|
||||||
device.wipe(client)
|
client.open()
|
||||||
device.reset(client, no_backup=True)
|
device.wipe(client)
|
||||||
|
device.reset(client, no_backup=True)
|
||||||
|
|
||||||
i = 0
|
i = 0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# set private field
|
# set private field
|
||||||
device.apply_settings(client, use_passphrase=True)
|
device.apply_settings(client, use_passphrase=True)
|
||||||
assert client.features.passphrase_protection is True
|
assert client.features.passphrase_protection is True
|
Loading…
Reference in New Issue
Block a user