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:
Peter Barker 2022-06-15 12:54:15 +10:00 committed by Peter Barker
parent c339b1d374
commit 7120d4f750

View File

@ -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: