Skip to content

Commit

Permalink
ensure emulator ready for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aarsilv committed Oct 24, 2023
1 parent c36732a commit 3bdf02e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,16 @@ jobs:
script: |
echo "Emulator started"
adb reverse tcp:4001 tcp:4001
echo "Waiting for emulator to boot"
timeout=300 # 5 minutes
counter=0
while [[ -z $(adb shell getprop sys.boot_completed | tr -d '\r') ]]; do
if [ $counter -ge $timeout ]; then
echo "Timeout waiting for emulator to boot"
exit 1
fi
counter=$((counter + 1))
sleep 1
done
echo "Emulator shell ready"
make test
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ test-data:
## test
.PHONY: test
test: test-data
# $(INFO)Uninstalling old version of test app(END)
# adb uninstall cloud.eppo.android.test
# $(INFO)Running tests(END)
./gradlew runEppoTests

Expand Down

0 comments on commit 3bdf02e

Please sign in to comment.