1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

ci: hw tests: tweak wait times

This commit is contained in:
Martin Milata 2020-12-04 17:16:57 +01:00
parent 0a75e02392
commit ed481b5dde
3 changed files with 6 additions and 8 deletions

View File

@ -25,9 +25,7 @@ class Device:
self.now()
print("[hardware/usb] Turning power on...")
os.system(
"uhubctl -l {} -p {} -a on > /dev/null".format(
self.uhub_location, self.device_port
)
"uhubctl -l {} -p {} -a on".format(self.uhub_location, self.device_port)
)
self.wait(3)
@ -35,7 +33,7 @@ class Device:
self.now()
print("[hardware/usb] Turning power off...")
os.system(
"uhubctl -l {} -p {} -r 100 -a off > /dev/null".format(
"uhubctl -l {} -p {} -r 100 -a off".format(
self.uhub_location, self.device_port
)
)

View File

@ -31,7 +31,7 @@ class TrezorOne(Device):
self.run_trezorctl(trezorctlcmd)
self.wait(3)
self.touch("right", "click")
self.wait(20)
self.wait(25)
if unofficial:
self.touch("right", "click")
self.wait(10)

View File

@ -14,8 +14,8 @@ class TrezorT(Device):
self.wait(5)
print("[software] Updating the firmware to {}".format(file))
self.run_trezorctl("firmware-update -s -f {} &".format(file))
self.run_trezorctl("firmware-update -s -f {}".format(file))
# upgrading to 2.3.2 took about 80s
self.wait(80)
# after firmware-update finishes wait for reboot
self.wait(15)
self.check_version()