test_logcatd_android.py: catch unicode decode error

old-commit-hash: fe0f9aaa4f7ceba345c30819245f62be6004d535
This commit is contained in:
Willem Melching
2022-01-17 11:33:26 +01:00
parent 11e2b91c5e
commit 651df33062
@@ -34,7 +34,11 @@ class TestLogcatdAndroid(unittest.TestCase):
self.assertTrue(m.valid)
self.assertLess(time.monotonic() - (m.logMonoTime / 1e9), 30)
recv_msg = m.androidLog.message.strip()
try:
recv_msg = m.androidLog.message.strip()
except UnicodeDecodeError:
continue
if recv_msg not in sent_msgs:
continue