test_logcatd_android.py: catch unicode decode error

old-commit-hash: fe0f9aaa4f
commatwo_master
Willem Melching 3 years ago
parent 11e2b91c5e
commit 651df33062
  1. 4
      selfdrive/logcatd/tests/test_logcatd_android.py

@ -34,7 +34,11 @@ class TestLogcatdAndroid(unittest.TestCase):
self.assertTrue(m.valid)
self.assertLess(time.monotonic() - (m.logMonoTime / 1e9), 30)
try:
recv_msg = m.androidLog.message.strip()
except UnicodeDecodeError:
continue
if recv_msg not in sent_msgs:
continue

Loading…
Cancel
Save