Makefile: pass TESTOPTS to test runners (and use them in run_tests_device_emu.sh

pull/25/head
matejcik 6 years ago
parent 2a3e336b21
commit 5b9b904198

@ -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…
Cancel
Save