autotest: remove pointless try/except in SMART_RTL test

This commit is contained in:
Peter Barker 2024-02-28 16:38:40 +11:00 committed by Peter Barker
parent deb8d5a92d
commit bae88512bf

View File

@ -9024,9 +9024,6 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
def SMART_RTL(self):
'''Check SMART_RTL'''
self.context_push()
ex = None
try:
self.progress("arm the vehicle and takeoff in Guided")
self.takeoff(20, mode='GUIDED')
self.progress("fly around a bit (or whatever)")
@ -9048,18 +9045,6 @@ class AutoTestCopter(vehicle_test_suite.TestSuite):
)
self.wait_disarmed()
except Exception as e:
self.print_exception_caught(e)
ex = e
self.disarm_vehicle(force=True)
self.context_pop()
self.reboot_sitl()
if ex is not None:
raise ex
def get_ground_effect_duration_from_current_onboard_log(self, bit, ignore_multi=False):
'''returns a duration in seconds we were expecting to interact with
the ground. Will die if there's more than one such block of