Skip to content

Commit

Permalink
Fix the e2e test script to make sure all previous servers are killed …
Browse files Browse the repository at this point in the history
…before starting a new one. (#1340)
  • Loading branch information
judy authored and martinvol committed Oct 30, 2019
1 parent a064908 commit 24a6391
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mobile/scripts/run_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ echo "Emulator unlocked!"
bash ./scripts/unlock.sh

# Just to be safe kill any process that listens on the port 'yarn start' is going to use
lsof -t -i :8081 | xargs kill -9
echo "Killing previous metro server (if any)"
react-native-kill-packager || echo 'Failed to kill for some reason'
echo "Start metro server"
yarn start:bg


Expand Down
2 changes: 2 additions & 0 deletions packages/mobile/scripts/unlock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ sleep 2
adb shell input text $SECRET_PIN # Input Pin
sleep 1
adb shell input keyevent 66 # Enter

echo "Done this unlock"

0 comments on commit 24a6391

Please sign in to comment.