1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-05 23:10:12 +00:00
trezor-firmware/tests/run_tests_device_emu.sh
2018-02-27 02:09:04 +01:00

20 lines
295 B
Bash
Executable File

#!/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
error=0
if ! pytest -k 'not skip_t2' --pyargs trezorlib.tests.device_tests ; then
error=1
fi
kill $upy_pid
exit $error