mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-13 19:18:56 +00:00
Makefile: pass TESTOPTS to test runners (and use them in run_tests_device_emu.sh
This commit is contained in:
parent
2a3e336b21
commit
5b9b904198
4
Makefile
4
Makefile
@ -66,10 +66,10 @@ emu: ## run emulator
|
||||
## test commands:
|
||||
|
||||
test: ## run unit tests
|
||||
cd tests ; ./run_tests.sh
|
||||
cd tests ; ./run_tests.sh $(TESTOPTS)
|
||||
|
||||
test_emu: ## run selected device tests from python-trezor
|
||||
cd tests ; ./run_tests_device_emu.sh
|
||||
cd tests ; ./run_tests_device_emu.sh $(TESTOPTS)
|
||||
|
||||
pylint: ## run pylint on application sources and tests
|
||||
pylint -E $(shell find src -name *.py)
|
||||
|
@ -12,7 +12,7 @@ sleep 1
|
||||
# run tests
|
||||
cd ../tests
|
||||
error=0
|
||||
if ! pytest -k 'not skip_t2' --pyargs trezorlib.tests.device_tests ; then
|
||||
if ! pytest -k 'not skip_t2' --pyargs trezorlib.tests.device_tests "$@"; then
|
||||
error=1
|
||||
fi
|
||||
kill $upy_pid
|
||||
|
Loading…
Reference in New Issue
Block a user