1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

test_curves: do not rely on CWD

This commit is contained in:
matejcik 2018-07-12 15:19:51 +02:00 committed by matejcik
parent 957b8129bd
commit 9b2de9584d
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ script:
- ./tests/test_check
- CK_TIMEOUT_MULTIPLIER=20 valgrind -q --error-exitcode=1 ./tests/test_check
- ./tests/test_openssl 1000
- cd ./tests ; ITERS=10 $PYTHON -m pytest ; cd ..
- ITERS=10 $PYTHON -m pytest tests/
notifications:
webhooks:

View File

@ -40,7 +40,8 @@ points = [
random_iters = int(os.environ.get('ITERS', 1))
lib = c.cdll.LoadLibrary('./libtrezor-crypto.so')
DIR = os.path.abspath(os.path.dirname(__file__))
lib = c.cdll.LoadLibrary(os.path.join(DIR, 'libtrezor-crypto.so'))
class curve_info(c.Structure):
_fields_ = [("bip32_name", c.c_char_p),