Skip to content

Commit ec7d621

Browse files
committed
Fix
1 parent ea70309 commit ec7d621

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/android-emulator.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,40 +99,40 @@ jobs:
9999
working-directory: ${{ env.DEMO_PATH }}
100100
script: |
101101
set -ex
102-
102+
103103
DEMO_NAME=$(basename "$PWD")
104104
LOGCAT_FILE="/tmp/logcat-${DEMO_NAME}.txt"
105-
105+
106106
echo "=== Emulator Memory Info ==="
107107
adb shell cat /proc/meminfo | head -5
108-
108+
109109
echo "=== Emulator Disk Space ==="
110110
adb shell df -h /data
111-
111+
112112
# Start logcat capture
113113
adb logcat -c
114114
adb logcat > "$LOGCAT_FILE" &
115115
LOGCAT_PID=$!
116-
116+
117117
echo "=== Starting Gradle ==="
118118
./gradlew connectedCheck
119119
TEST_EXIT_CODE=$?
120-
120+
121121
# Stop logcat
122122
if [ -n "$LOGCAT_PID" ]; then
123123
kill $LOGCAT_PID 2>/dev/null || true
124124
fi
125-
125+
126126
echo "=== Test completion status ==="
127127
if [ $TEST_EXIT_CODE -eq 0 ]; then
128-
echo "Tests passed successfully"
128+
echo "Tests passed successfully"
129129
else
130-
echo "Tests failed with exit code $TEST_EXIT_CODE"
130+
echo "Tests failed with exit code $TEST_EXIT_CODE"
131131
fi
132-
132+
133133
echo "=== Checking for test results in logcat ==="
134134
grep -E "SanityCheck|UIWorkflowTest" "$LOGCAT_FILE" || echo "No test logs found"
135-
135+
136136
exit $TEST_EXIT_CODE
137137
138138
- name: Upload logcat

0 commit comments

Comments
 (0)