tests: fix trezor.config test by changing PYOPT to 1

pull/25/head
Pavol Rusnak 6 years ago
parent b0242d3a3e
commit 800c2c64c8
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -3,7 +3,7 @@
source emu.config 2>/dev/null
EXE=build/unix/micropython
OPTLEVEL="${OPTLEVEL:-0}"
OPTLEVEL="${OPTLEVEL:-1}"
MAIN="${MAIN:-main.py}"
BROWSER="${BROWSER:-chromium}"
if file $EXE | grep -q 80386 ; then

@ -1,6 +1,7 @@
#!/bin/bash
MICROPYTHON=../build/unix/micropython
PYOPT=1
results=()
error=0
@ -13,7 +14,7 @@ fi
for i in $list; do
echo
if $MICROPYTHON $i; then
if $MICROPYTHON -O$PYOPT $i; then
results+=("OK $i")
else
results+=("FAIL $i")

@ -1,8 +1,11 @@
#!/bin/bash
MICROPYTHON=../build/unix/micropython
PYOPT=0
# run emulator
cd ../src
../build/unix/micropython -O0 main.py >/dev/null &
$MICROPYTHON -O$PYOPT main.py >/dev/null &
upy_pid=$!
sleep 1

Loading…
Cancel
Save