1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 22:08:08 +00:00
trezor-firmware/ci/hardware_tests
Martin Milata 41bf9201b5 ci: do not rely on TREZOR_PATH, use switch ports instead
As the connected Trezors can be left in various weird states, trezorctl
list may not always return what is expected or even fail. If it failed
TREZOR_PATH was set to empty string which means random device got
selected.

For now let's avoid using incorrect device by powering down the other
usb port.

Fix log lines ordering.
2021-02-05 12:58:21 +01:00
..
device ci: do not rely on TREZOR_PATH, use switch ports instead 2021-02-05 12:58:21 +01:00
tpmb ci: enable editorconfig checks, fix whitespace issues 2020-11-11 14:43:50 +01:00
bootstrap.py ci: do not rely on TREZOR_PATH, use switch ports instead 2021-02-05 12:58:21 +01:00
default.nix chore(python): replace pipenv with poetry 2020-10-07 16:21:00 +02:00
hardware.cfg ci: introduce hardware tests for TT 2021-02-05 12:58:21 +01:00
README.md ci: add hardware tests for T1 2020-04-10 11:23:07 +02:00
record_video.sh ci: ffmpeg tweaks in hardware tests 2021-02-05 12:58:21 +01:00
t1_hw_test.sh ci: do not rely on TREZOR_PATH, use switch ports instead 2021-02-05 12:58:21 +01:00

Hardware tests

Hardware tests are device tests that run against an actual device instead of an emulator. This works thanks to tpmb, which is a small arduino device capable of pushing an actual buttons on the device. Currently T1 is supported but TT might follow.

See ci/test.yml "hardware legacy device test" what exactly is run.