mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
ci: hw tests: tweak wait times
This commit is contained in:
parent
0a75e02392
commit
ed481b5dde
@ -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
|
||||
)
|
||||
)
|
||||
|
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user