mirror of https://github.com/ArduPilot/ardupilot
Tools: autotest: fix sub reboot detection
the string we were looking for actually gets emitted just before reboot - sometimes!
This commit is contained in:
parent
6f52fa5622
commit
3ab9fa48dc
|
@ -164,7 +164,7 @@ class AutoTestSub(AutoTest):
|
|||
def reboot_sitl(self):
|
||||
"""Reboot SITL instance and wait it to reconnect."""
|
||||
self.mavproxy.send("reboot\n")
|
||||
self.mavproxy.expect("Initialising APM")
|
||||
self.mavproxy.expect("Init ArduSub")
|
||||
# empty mav to avoid getting old timestamps:
|
||||
while self.mav.recv_match(blocking=False):
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue