autotest: correct reboot in failure case for dock mode test

reboot will fail if we are still armed
This commit is contained in:
Peter Barker 2022-09-18 18:53:45 +10:00 committed by Peter Barker
parent d4587e787e
commit b5be0dcd14

View File

@ -6096,13 +6096,15 @@ Brakes have negligible effect (with=%0.2fm without=%0.2fm delta=%0.2fm)
self.print_exception_caught(e)
ex = e
break
self.context_pop()
self.reboot_sitl()
self.progress("All done")
if ex is not None:
raise ex
self.reboot_sitl()
self.progress("All done")
def tests(self):
'''return list of all tests'''
ret = super(AutoTestRover, self).tests()