Skip to content

Android smoke: one odd byte in logcat must not fail the check - #53

Merged
juwpegatron merged 1 commit into
mainfrom
fix/android-smoke-decode
Nov 27, 2026
Merged

juwpegatron merged 1 commit into
mainfrom
fix/android-smoke-decode

Conversation

@juwpegatron

Copy link
Copy Markdown
Collaborator

One line per Android smoke script: adb output is read with encoding="utf-8", errors="replace".

Why: adb logcat can hold a byte that is not UTF-8 (it comes from the emulator's log, not from the app). With text=True alone that one byte ends the check in UnicodeDecodeError. Seen on main in juw12/jepret (fixed in jepret#5) and juw12/projects (fixed in projects#140); this repo has the same line.

Not changed: what the check asserts.

adb logcat can hold a byte that is not UTF-8. With text=True alone one such byte ends the
check in UnicodeDecodeError (seen on jepret and on DatumCAD in juw12/projects). What the
check asserts is unchanged.
@juwpegatron
juwpegatron merged commit a5cfc42 into main Nov 27, 2026
7 of 8 checks passed
@juwpegatron
juwpegatron deleted the fix/android-smoke-decode branch November 27, 2026 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant