1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 06:18:07 +00:00

ci: hardware: wipe tt before flashing

This commit is contained in:
Martin Milata 2021-01-23 23:03:56 +01:00
parent ceccf1951a
commit c7b021e59e

View File

@ -14,6 +14,12 @@ class TrezorT(Device):
"Uploading production firmware will replace the bootloader, it is not allowed!"
)
self.wait(5)
self.run_trezorctl("device wipe --bootloader || true")
self.wait(5)
self.power_off()
self.power_on()
self.wait(5)
self.log("[software] Updating the firmware to {}".format(file))
self.run_trezorctl("firmware-update -s -f {}".format(file))