mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
autotest: drain pexpects in set_parameters loop
This loop doesn't self.mav.recv(), so the idle loop isn't called, so the pexpects aren't drained. That can cause ArduPilot to block on stderr if it is trying to print a stacktrace, for example
This commit is contained in:
parent
27de0a3d23
commit
eff4bc4cfb
@ -4032,6 +4032,7 @@ class AutoTest(ABC):
|
||||
autopilot_values = {}
|
||||
for i in range(attempts):
|
||||
self.drain_mav(quiet=True)
|
||||
self.drain_all_pexpects()
|
||||
received = set()
|
||||
for (name, value) in want.items():
|
||||
if verbose:
|
||||
|
Loading…
Reference in New Issue
Block a user