1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-11 10:29:01 +00:00
trezor-firmware/tests/run_tests_device_emu.sh

22 lines
278 B
Bash
Raw Normal View History

#!/bin/bash
MICROPYTHON=../build/unix/micropython
PYOPT=0
# run emulator
cd ../src
$MICROPYTHON -O$PYOPT main.py >/dev/null &
upy_pid=$!
sleep 1
export TREZOR_PATH=udp:127.0.0.1:21324
# run tests
cd ..
2017-10-31 12:55:51 +00:00
error=0
2018-07-04 12:32:17 +00:00
if ! pytest "$@"; then
2017-10-31 12:55:51 +00:00
error=1
fi
kill $upy_pid
exit $error