1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00
trezor-firmware/ci/hardware_tests/t1_hw_test.sh

20 lines
467 B
Bash
Raw Normal View History

#!/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