1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00
trezor-firmware/ci/hardware_tests/t1_hw_test.sh
2024-02-20 19:49:41 +01:00

20 lines
467 B
Bash
Executable File

#!/usr/bin/env bash
HERE=`dirname "$0"`
SHA=${GITHUB_SHA:-unknown}
cd $HERE
function finish {
./record_video.sh ${T1_CAMERA} ${SHA} stop
}
trap finish EXIT
set -e # exit on nonzero exitcode
set -x # trace commands
./record_video.sh ${T1_CAMERA} ${SHA} start
(cd ../.. && poetry install)
#poetry run python bootstrap.py T1B1 # install official firmware first
poetry run python bootstrap.py T1B1 ../../firmware-T1*.bin
poetry run pytest ../../tests/device_tests