Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion android/smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@

def adb(*args, check=True):
try:
result = subprocess.run(["adb", *args], capture_output=True, text=True, timeout=180)
# logcat can hold a byte that is not UTF-8; one such byte must not fail the whole check.
result = subprocess.run(
["adb", *args], capture_output=True, text=True, encoding="utf-8", errors="replace", timeout=180
)
except subprocess.TimeoutExpired:
# A busy emulator can take minutes over the whole log. Where the answer is only read (check=False)
# an empty one is enough: the checks above decide, not the dump.
Expand Down