mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
Tools: autotest: remove old run_test function
This commit is contained in:
parent
41cd906641
commit
320ea4d7f5
@ -1443,21 +1443,6 @@ class AutoTest(ABC):
|
|||||||
self.mav.message_hooks.append(self.message_hook)
|
self.mav.message_hooks.append(self.message_hook)
|
||||||
self.mav.idle_hooks.append(self.idle_hook)
|
self.mav.idle_hooks.append(self.idle_hook)
|
||||||
|
|
||||||
def run_test(self, desc, test_function, interact=False):
|
|
||||||
'''old--style run-one-test used by vehicle test scripts, to be eliminated when all are converted'''
|
|
||||||
self.start_test(desc)
|
|
||||||
|
|
||||||
try:
|
|
||||||
test_function()
|
|
||||||
except Exception as e:
|
|
||||||
self.progress('FAILED: "%s": %s' % (desc, repr(e)))
|
|
||||||
self.fail_list.append((desc, e, None))
|
|
||||||
if interact:
|
|
||||||
self.progress("Starting MAVProxy interaction as directed")
|
|
||||||
self.mavproxy.interact()
|
|
||||||
return
|
|
||||||
self.progress('PASSED: "%s"' % desc)
|
|
||||||
|
|
||||||
def check_sitl_reset(self):
|
def check_sitl_reset(self):
|
||||||
if self.armed():
|
if self.armed():
|
||||||
self.forced_post_test_sitl_reboots += 1
|
self.forced_post_test_sitl_reboots += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user