Skip to content

Commit 5cae5da

Browse files
authored
ci: sync android emulator time with host time (#1536)
* ci: sync android emulator time with host time * provide `su root date` as fallback for when `cmd alarm set-time` fails
1 parent 2475b26 commit 5cae5da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ jobs:
389389
target: google_apis
390390
emulator-boot-timeout: 1200
391391
script: |
392+
# Sync emulator clock with host to avoid timestamp assertion failures
393+
adb shell cmd alarm set-time $(date +%s000) || adb shell su root date $(date -u +%m%d%H%M%Y.%S)
392394
pip install --upgrade --requirement tests/requirements.txt
393395
pytest --capture=no --verbose tests
394396

0 commit comments

Comments
 (0)