mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
autotest: eliminate race condition in plane fence static test
This commit is contained in:
parent
e9c6c08a97
commit
5848ff7512
@ -1152,9 +1152,9 @@ class AutoTestPlane(AutoTest):
|
||||
self.assert_fence_sys_status(True, True, True)
|
||||
self.mavproxy.send("fence clear\n")
|
||||
self.mavproxy.expect("fence removed")
|
||||
self.wait_sensor_state(mavutil.mavlink.MAV_SYS_STATUS_GEOFENCE, False, False, True)
|
||||
if self.get_parameter("FENCE_TOTAL") != 0:
|
||||
raise NotAchievedException("Expected zero points remaining")
|
||||
self.assert_fence_sys_status(False, False, True)
|
||||
|
||||
except Exception as e:
|
||||
self.progress("Exception caught:")
|
||||
|
Loading…
Reference in New Issue
Block a user