1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-11 16:00:57 +00:00

tests: extract micropython binary to variable in run_tests.sh

This commit is contained in:
Pavol Rusnak 2016-11-08 19:04:59 +01:00
parent d2c71b3a58
commit b3bc71c481
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,4 +1,5 @@
#!/bin/bash
MICROPYTHON=../vendor/micropython/unix/micropython
results=()
error=0
if [ -z "$*" ]; then
@ -8,7 +9,7 @@ else
fi
for i in $list; do
echo
if ../vendor/micropython/unix/micropython $i; then
if $MICROPYTHON $i; then
results+=("OK $i")
else
results+=("FAIL $i")