1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

core/tests: adapt device_emu_fido2/u2f to reordered usb endpoints

This commit is contained in:
Pavol Rusnak 2019-11-13 12:22:38 +01:00
parent df273bf836
commit 2652936c16
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 5 additions and 3 deletions

View File

@ -32,6 +32,7 @@ fi
cd ../../tests/fido_tests/fido2 cd ../../tests/fido_tests/fido2
# run tests # run tests
error=0 error=0
export TREZOR_FIDO2_UDP_PORT=21326
if ! pytest --random-order-seed=414020 --sim tests/standard/ --vendor trezor "$@"; then # hardcoded order seed, which succeeds if ! pytest --random-order-seed=414020 --sim tests/standard/ --vendor trezor "$@"; then # hardcoded order seed, which succeeds
error=1 error=1
fi fi

View File

@ -31,14 +31,15 @@ fi
# run tests # run tests
error=0 error=0
TREZOR_FIDO2_UDP_PORT=21326
# missuse loaddevice test to initialize the device # missuse loaddevice test to initialize the device
if ! pytest ../../tests/device_tests -k "test_msg_loaddevice" "$@"; then if ! pytest ../../tests/device_tests -k "test_msg_loaddevice" "$@"; then
error=1 error=1
fi fi
if ! ../../tests/fido_tests/u2f-tests-hid/HIDTest 21328 "$@"; then if ! ../../tests/fido_tests/u2f-tests-hid/HIDTest "${TREZOR_FIDO2_UDP_PORT}" "$@"; then
error=1 error=1
fi fi
if ! ../../tests/fido_tests/u2f-tests-hid/U2FTest 21328 "$@"; then if ! ../../tests/fido_tests/u2f-tests-hid/U2FTest "${TREZOR_FIDO2_UDP_PORT}" "$@"; then
error=1 error=1
fi fi
kill $upy_pid kill $upy_pid

2
vendor/fido2-tests vendored

@ -1 +1 @@
Subproject commit f414dd2bc1094f148b217ed58516ccbf4cf43690 Subproject commit e1e44d43893fd8eefde4f18f576d006747e5fc90