fix(ci): make Connect tests run properly

pull/2362/head
grdddj 2 years ago committed by matejcik
parent f3bfdd41fe
commit 3a8e84a86e

@ -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"

@ -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

Loading…
Cancel
Save