autotest: remove pointless try/except in SMART_RTL test
This commit is contained in:
parent
deb8d5a92d
commit
bae88512bf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user