Skip to content

Commit 16de141

Browse files
TomTascheclaude
andcommitted
Simplify logcat capture in CI tests
- Remove redundant logcat capture methods - Just clear, run tests, then dump logcat once - Cleaner and more straightforward approach 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b5eefdf commit 16de141

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/build_test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,14 @@ jobs:
165165
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
166166
disable-animations: true
167167
script: |
168+
# Clear logcat before tests
168169
adb logcat -c
169-
adb logcat > logcat.txt &
170-
LOGCAT_PID=$!
171-
./gradlew connectedCheck || TEST_RESULT=$?
172-
kill $LOGCAT_PID || true
173-
exit ${TEST_RESULT:-0}
170+
171+
# Run tests
172+
./gradlew connectedCheck
173+
174+
# Dump logcat after tests
175+
adb logcat -d > logcat.txt
174176
175177
- name: Upload test results
176178
if: always()

0 commit comments

Comments
 (0)