1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-25 17:09:44 +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() self.now()
print("[hardware/usb] Turning power on...") print("[hardware/usb] Turning power on...")
os.system( os.system(
"uhubctl -l {} -p {} -a on > /dev/null".format( "uhubctl -l {} -p {} -a on".format(self.uhub_location, self.device_port)
self.uhub_location, self.device_port
)
) )
self.wait(3) self.wait(3)
@ -35,7 +33,7 @@ class Device:
self.now() self.now()
print("[hardware/usb] Turning power off...") print("[hardware/usb] Turning power off...")
os.system( 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 self.uhub_location, self.device_port
) )
) )

View File

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

View File

@ -14,8 +14,8 @@ class TrezorT(Device):
self.wait(5) self.wait(5)
print("[software] Updating the firmware to {}".format(file)) 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 # after firmware-update finishes wait for reboot
self.wait(80) self.wait(15)
self.check_version() self.check_version()