Last active
February 16, 2017 21:23
-
-
Save dotdoom/95c5c6c572f100bd0006633d00978e37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- emulator -avd test -no-window: | |
background: true | |
- circle-android wait-for-boot | |
# Wait until there's no log spam for some time -- means all Google Play Services have booted. | |
- > | |
while ! cmp /tmp/android.log /tmp/android-previous.log; do | |
mv /tmp/android.log /tmp/android-previous.log | |
sleep 20 | |
# Compare the last few lines of logcat | |
adb logcat -t 25 >/tmp/android.log | |
done | |
# Unlock the screen. | |
- adb shell input keyevent 82 | |
# Save the "boot" log events for deeper investigation. | |
- adb logcat -d >"${CIRCLE_ARTIFACTS?}"/logcat-boot.txt | |
# But keep the actual test run logcat clean. | |
- adb logcat -c | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment