mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-06 14:52:33 +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
|
source emu.config 2>/dev/null
|
||||||
|
|
||||||
EXE=build/unix/micropython
|
EXE=build/unix/micropython
|
||||||
OPTLEVEL="${OPTLEVEL:-0}"
|
OPTLEVEL="${OPTLEVEL:-1}"
|
||||||
MAIN="${MAIN:-main.py}"
|
MAIN="${MAIN:-main.py}"
|
||||||
BROWSER="${BROWSER:-chromium}"
|
BROWSER="${BROWSER:-chromium}"
|
||||||
if file $EXE | grep -q 80386 ; then
|
if file $EXE | grep -q 80386 ; then
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
MICROPYTHON=../build/unix/micropython
|
MICROPYTHON=../build/unix/micropython
|
||||||
|
PYOPT=1
|
||||||
|
|
||||||
results=()
|
results=()
|
||||||
error=0
|
error=0
|
||||||
@ -13,7 +14,7 @@ fi
|
|||||||
|
|
||||||
for i in $list; do
|
for i in $list; do
|
||||||
echo
|
echo
|
||||||
if $MICROPYTHON $i; then
|
if $MICROPYTHON -O$PYOPT $i; then
|
||||||
results+=("OK $i")
|
results+=("OK $i")
|
||||||
else
|
else
|
||||||
results+=("FAIL $i")
|
results+=("FAIL $i")
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
MICROPYTHON=../build/unix/micropython
|
||||||
|
PYOPT=0
|
||||||
|
|
||||||
# run emulator
|
# run emulator
|
||||||
cd ../src
|
cd ../src
|
||||||
../build/unix/micropython -O0 main.py >/dev/null &
|
$MICROPYTHON -O$PYOPT main.py >/dev/null &
|
||||||
upy_pid=$!
|
upy_pid=$!
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user