mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-26 00:08:10 +00:00
tests: rework device tests to checkout just device_tests subdirectory from python-trezor repo
This commit is contained in:
parent
596d41e68c
commit
3a35a5a5be
2
Makefile
2
Makefile
@ -45,7 +45,7 @@ test: ## run unit tests
|
||||
cd tests ; ./run_tests.sh
|
||||
|
||||
testpy: ## run selected unit tests from python-trezor
|
||||
cd tests ; ./run_tests_python_trezor.sh
|
||||
cd tests ; ./run_tests_device.sh
|
||||
|
||||
pylint: ## run pylint on application sources
|
||||
pylint -E $(shell find src -name *.py)
|
||||
|
2
tests/.gitignore
vendored
2
tests/.gitignore
vendored
@ -1 +1 @@
|
||||
python-trezor/
|
||||
device_tests/
|
||||
|
@ -1,9 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -d python-trezor ]; then
|
||||
cd python-trezor ; git pull ; cd ..
|
||||
else
|
||||
git clone https://github.com/trezor/python-trezor.git
|
||||
if [ \! -d device_tests ]; then
|
||||
curl -s -L https://github.com/trezor/python-trezor/archive/master.tar.gz | tar -xvz --strip-components=2 python-trezor-master/tests/device_tests
|
||||
fi
|
||||
|
||||
# run emulator
|
||||
@ -14,7 +12,7 @@ UPY_PID=$!
|
||||
|
||||
sleep 1
|
||||
|
||||
cd ../tests/python-trezor/tests/device_tests
|
||||
cd ../tests/device_tests
|
||||
|
||||
error=0
|
||||
|
Loading…
Reference in New Issue
Block a user