autotest: install hook in context

busted sanity check allowed this to survive
This commit is contained in:
Peter Barker 2024-04-29 17:01:08 +10:00 committed by Peter Barker
parent 890a83166d
commit bcf63326ea

View File

@ -3013,7 +3013,7 @@ class AutoTestPlane(vehicle_test_suite.TestSuite):
if m.relative_alt/1000.0 > max_alt:
max_alt = m.relative_alt/1000.0
self.install_message_hook(record_maxalt)
self.install_message_hook_context(record_maxalt)
self.fly_mission_waypoints(num_wp-1, mission_timeout=600)