mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
tests: fix trezor.config test by changing PYOPT to 1
This commit is contained in:
parent
b0242d3a3e
commit
800c2c64c8
2
emu.sh
2
emu.sh
@ -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…
Reference in New Issue
Block a user