trezor-core/tests/run_tests_device_emu.sh

20 lines
295 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
# run tests
cd ../tests
2017-10-31 05:55:51 -07:00
error=0
2018-02-26 17:09:04 -08:00
if ! pytest -k 'not skip_t2' --pyargs trezorlib.tests.device_tests ; then
2017-10-31 05:55:51 -07:00
error=1
fi
kill $upy_pid
exit $error