1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-28 18:38:39 +00:00

tests: rework device tests to checkout just device_tests subdirectory from python-trezor repo

This commit is contained in:
Pavol Rusnak 2017-07-28 19:44:06 +02:00
parent 596d41e68c
commit 3a35a5a5be
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 5 additions and 7 deletions

View File

@ -45,7 +45,7 @@ test: ## run unit tests
cd tests ; ./run_tests.sh cd tests ; ./run_tests.sh
testpy: ## run selected unit tests from python-trezor 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: ## run pylint on application sources
pylint -E $(shell find src -name *.py) pylint -E $(shell find src -name *.py)

2
tests/.gitignore vendored
View File

@ -1 +1 @@
python-trezor/ device_tests/

View File

@ -1,9 +1,7 @@
#!/bin/bash #!/bin/bash
if [ -d python-trezor ]; then if [ \! -d device_tests ]; then
cd python-trezor ; git pull ; cd .. curl -s -L https://github.com/trezor/python-trezor/archive/master.tar.gz | tar -xvz --strip-components=2 python-trezor-master/tests/device_tests
else
git clone https://github.com/trezor/python-trezor.git
fi fi
# run emulator # run emulator
@ -14,7 +12,7 @@ UPY_PID=$!
sleep 1 sleep 1
cd ../tests/python-trezor/tests/device_tests cd ../tests/device_tests
error=0 error=0