summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-10-10 16:24:28 +1100
committerDamien George <damien@micropython.org>2024-10-15 11:23:07 +1100
commit7746785035f7003e33f9b101c8bbb4d7a74f216f (patch)
treeef1cf60dd8603298d82f30184c1d07f32411a332 /docs/esp32/tutorial
parent1223fa92f1cc6190e683b9b8fca66d436c657fdb (diff)
tests/run-tests.py: Wait for soft reset if a target skips a test.
Commit 69c25ea8653566ec97690b5121bd10b753c89426 made raising `SystemExit` do a soft reset (on bare-metal targets). This means that any test which is skipped by a target (by raising `SystemExit`) will trigger a soft reset on that target, and then it must execute its startup code, such as `boot.py`. If the timing is right, this startup code can be unintentionally interrupted by the test runner when preparing the next test, because the test runner enters the raw REPL again via a Ctrl-C Ctrl-A ctrl-D sequence (in `Pyboard.enter_raw_repl()`). When this happens (`boot.py` is interrupted) the target may not be set up correctly, and it may (in the case of stm32 boards) flash LEDs and take extra time, slowing down the test run. Fix this by explicitly waiting for the target to finish its soft reset when it skips a test. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions