Skip to content

Commit 31701d7

Browse files
committed
Stop logcat capture before screenshot decoding
1 parent 39daf69 commit 31701d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/run-android-instrumentation-tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ ra_log "Gradle stdout captured at $GRADLE_STDOUT_LOG"
163163

164164
sleep 2
165165

166+
if [ "$LOGCAT_PID" -ne 0 ]; then
167+
ra_log "Stopping logcat capture"
168+
kill "$LOGCAT_PID" >/dev/null 2>&1 || true
169+
wait "$LOGCAT_PID" 2>/dev/null || true
170+
LOGCAT_PID=0
171+
fi
172+
166173
declare -a CN1SS_SOURCES=()
167174
[ -s "$GRADLE_STDOUT_LOG" ] && CN1SS_SOURCES+=("STDOUT:$GRADLE_STDOUT_LOG")
168175
[ -s "$TEST_LOG" ] && CN1SS_SOURCES+=("LOGCAT:$TEST_LOG")

0 commit comments

Comments
 (0)