Skip to content

Commit

Permalink
fix test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Nov 29, 2023
1 parent 635aa85 commit 859fba2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/e2e/TestSpec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ phases:
# Install correct version of node
- export NVM_DIR=$HOME/.nvm
- . $NVM_DIR/nvm.sh
- nvm install 20.9.0
- nvm use 20.9.0
# Note: Node v16 is the latest supported version of node for AWS Device Farm
# using v20 will not work!
- nvm install 16
- nvm use --delete-prefix 16

# Reverse ports using AWS magic
- PORT=4723
- IP_ADDRESS=$(ip -4 addr show eth0 | grep -Po "(?<=inet\s)\d+(\.\d+){3}")
- reverse_values="{\"ip_address\":\"$IP_ADDRESS\",\"local_port\":\"$PORT\",\"remote_port\":\"$PORT\"}"
- "curl -H \"Content-Type: application/json\" -X POST -d \"$reverse_values\" http://localhost:31007/reverse_forward_tcp"
- 'curl -H "Content-Type: application/json" -X POST -d "$reverse_values" http://localhost:31007/reverse_forward_tcp'
- adb reverse tcp:$PORT tcp:$PORT

test:
Expand All @@ -23,4 +25,4 @@ phases:
- node e2e/testRunner.js -- --skipInstallDeps --buildMode "skip" --skipCheckout --mainAppPath app-e2eRelease.apk --deltaAppPath app-e2edeltaRelease.apk

artifacts:
- $WORKING_DIRECTORY
- $WORKING_DIRECTORY

0 comments on commit 859fba2

Please sign in to comment.