mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-04 03:40:58 +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 commands:
|
||||||
|
|
||||||
test: ## run unit tests
|
test: ## run unit tests
|
||||||
cd tests ; ./run_tests.sh
|
cd tests ; ./run_tests.sh $(TESTOPTS)
|
||||||
|
|
||||||
test_emu: ## run selected device tests from python-trezor
|
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: ## run pylint on application sources and tests
|
||||||
pylint -E $(shell find src -name *.py)
|
pylint -E $(shell find src -name *.py)
|
||||||
|
@ -12,7 +12,7 @@ sleep 1
|
|||||||
# run tests
|
# run tests
|
||||||
cd ../tests
|
cd ../tests
|
||||||
error=0
|
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
|
error=1
|
||||||
fi
|
fi
|
||||||
kill $upy_pid
|
kill $upy_pid
|
||||||
|
Loading…
Reference in New Issue
Block a user