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()
|
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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -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)
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user