autotest: allow other prearm failures while waiting for estop prearm

accels inconsistent was popping up in here.

We can ignore that - we only care we won't arm because of the estop being active.  This will also save a bit of time with the removal of the raw delay-for-10-seconds
This commit is contained in:
Peter Barker 2023-04-07 10:58:57 +10:00 committed by Peter Barker
parent ba6d467c9d
commit ae37d76f2d
1 changed files with 5 additions and 3 deletions

View File

@ -11665,10 +11665,12 @@ switch value'''
0,
want_result=mavutil.mavlink.MAV_RESULT_FAILED
)
self.wait_statustext("PreArm: Motors Emergency Stopped", check_context=True)
self.assert_prearm_failure("Motors Emergency Stopped",
other_prearm_failures_fatal=False)
self.reboot_sitl()
self.delay_sim_time(10)
self.assert_prearm_failure("Motors Emergency Stopped")
self.assert_prearm_failure(
"Motors Emergency Stopped",
other_prearm_failures_fatal=False)
self.context_pop()
self.reboot_sitl()