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:
parent
ceccf1951a
commit
c7b021e59e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user