summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modules
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-05-30 13:10:12 +1000
committerDamien George <damien@micropython.org>2025-06-02 17:02:59 +1000
commitdea3035b88a82b48f98b9951f3d2ad6500e4c9a9 (patch)
treed1787cb1448dc1d455bdace3e419cfddcb2e0132 /unix/modules
parentb1c947ab45937e262cfef99295a91202b8bb3a55 (diff)
downloadmicropython-dea3035b88a82b48f98b9951f3d2ad6500e4c9a9.tar.gz
micropython-dea3035b88a82b48f98b9951f3d2ad6500e4c9a9.zip
tools/pyboard.py: Add write_timeout and catch errors in enter_raw_repl.
If the USB serial device locks up, then writes to that device can hang forever. That can make the test runner `tests/run-tests.py` lock up, among other problems. This commit introduces a 5 second write-timeout, and catches any OSError's raised during `enter_raw_repl()`. Now, if a USB serial device locks up, `enter_raw_repl()` will eventually raise an exception. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'unix/modules')
0 files changed, 0 insertions, 0 deletions