From c7b021e59ea6b0116590d37d35baaf331ab572c9 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Sat, 23 Jan 2021 23:03:56 +0100 Subject: [PATCH] ci: hardware: wipe tt before flashing --- ci/hardware_tests/device/tt.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ci/hardware_tests/device/tt.py b/ci/hardware_tests/device/tt.py index c7660c0bd2..67821a6126 100644 --- a/ci/hardware_tests/device/tt.py +++ b/ci/hardware_tests/device/tt.py @@ -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))