mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
autotest: fix race condition in need-ekf-to-arm check
At extreme speedups we may not detect the reboot in the Python before the autopilot is ready to arm...
This commit is contained in:
parent
c339b1d374
commit
7120d4f750
@ -163,8 +163,9 @@ class AutoTestPlane(AutoTest):
|
||||
def test_need_ekf_to_arm(self):
|
||||
"""Loiter where we are."""
|
||||
self.progress("Ensuring we need EKF to be healthy to arm")
|
||||
self.reboot_sitl()
|
||||
self.wait_ready_to_arm()
|
||||
self.context_collect("STATUSTEXT")
|
||||
self.reboot_sitl()
|
||||
tstart = self.get_sim_time()
|
||||
success = False
|
||||
while not success:
|
||||
|
Loading…
Reference in New Issue
Block a user