mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
A pexpect timeout raised before the test loop had started - during init, for example - crashed run_tests' exception handler with an UnboundLocalError on the loop variable, masking the actual failure. Bind a placeholder first so such timeouts are reported as what they are. This is what turned test.BattCAN's peripheral startup panic into "cannot access local variable 'test'". Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>