1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

fix(ci): make Connect tests run properly

This commit is contained in:
grdddj 2022-06-30 13:47:02 +02:00 committed by matejcik
parent f3bfdd41fe
commit 3a8e84a86e
2 changed files with 6 additions and 3 deletions

View File

@ -685,7 +685,7 @@ core unix memory profiler:
# Connect
connect test core:
image: ghcr.io/trezor/trezor-user-env
image: ghcr.io/trezor/trezor-user-env:185
stage: test
needs:
- core unix frozen debug build
@ -693,8 +693,8 @@ connect test core:
SDL_VIDEODRIVER: "dummy"
before_script:
- cp /builds/satoshilabs/trezor/trezor-firmware/core/build/unix/trezor-emu-core /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99
- chmod u+x /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99
- nix-shell -p autoPatchelfHook SDL2 SDL2_image --run "autoPatchelf /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99"
- chmod +x /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99
- nix-shell --run "autoPatchelf /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99"
script:
- /trezor-user-env/run-nix.sh &
- nix-shell --run "tests/connect_tests/connect_tests.sh 2.99.99"

View File

@ -17,6 +17,9 @@ else
cd ${CONNECT_DIR}
fi
echo "Changing 'localhost' to '127.0.0.1' in websocket client as a workaround for CI servers"
sed -i 's/localhost/127.0.0.1/g' ./tests/websocket-client.js
# Taking an optional script argument with emulator version
if [ ! -z "${1}" ]
then