1
0
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:
matejcik 2018-03-09 14:56:18 +01:00
parent 2a3e336b21
commit 5b9b904198
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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