From 7120d4f750bcbaac04eefee84f4498fc64831136 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 15 Jun 2022 12:54:15 +1000 Subject: [PATCH] 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... --- Tools/autotest/arduplane.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/arduplane.py b/Tools/autotest/arduplane.py index 779aa03f5e..9fff6b0f51 100644 --- a/Tools/autotest/arduplane.py +++ b/Tools/autotest/arduplane.py @@ -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: