mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
core/tests: adapt device_emu_fido2/u2f to reordered usb endpoints
This commit is contained in:
parent
df273bf836
commit
2652936c16
@ -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
|
||||||
|
@ -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
2
vendor/fido2-tests
vendored
@ -1 +1 @@
|
|||||||
Subproject commit f414dd2bc1094f148b217ed58516ccbf4cf43690
|
Subproject commit e1e44d43893fd8eefde4f18f576d006747e5fc90
|
Loading…
Reference in New Issue
Block a user