Skip to content

Commit de1bed3

Browse files
committed
Don't fail Android e2e when the emulator can't clear logcat
1 parent bbb8299 commit de1bed3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/e2e/run_android.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ videos_dir="$logs_dir/videos"
4646
screenshots_dir="$logs_dir/screenshots"
4747
rm -rf "$videos_dir" "$screenshots_dir"
4848
mkdir -p "$videos_dir" "$screenshots_dir"
49-
adb -s "$DEVICE" logcat -c
49+
# Older images (e.g. API 26) can fail to clear the log right after boot.
50+
adb -s "$DEVICE" logcat -c || true
5051
adb -s "$DEVICE" logcat > "$logs_dir/logcat.txt" 2>&1 &
5152

5253
"$script_dir/grant_permissions.sh" &

0 commit comments

Comments
 (0)