mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
autotest: don't send statustext during exception
During an exception we don't want to be trying to print these
This commit is contained in:
parent
f78cf73726
commit
765889b827
@ -5663,7 +5663,7 @@ Also, ignores heartbeats not from our target system'''
|
|||||||
self.progress("Run attempt failed. Retrying")
|
self.progress("Run attempt failed. Retrying")
|
||||||
self.run_one_test_attempt(test, interact=interact, attempt=1)
|
self.run_one_test_attempt(test, interact=interact, attempt=1)
|
||||||
|
|
||||||
def print_exception_caught(self, e):
|
def print_exception_caught(self, e, send_statustext=True):
|
||||||
self.progress("Exception caught: %s" %
|
self.progress("Exception caught: %s" %
|
||||||
self.get_exception_stacktrace(e))
|
self.get_exception_stacktrace(e))
|
||||||
path = None
|
path = None
|
||||||
@ -5671,7 +5671,7 @@ Also, ignores heartbeats not from our target system'''
|
|||||||
path = self.current_onboard_log_filepath()
|
path = self.current_onboard_log_filepath()
|
||||||
except IndexError:
|
except IndexError:
|
||||||
pass
|
pass
|
||||||
self.progress("Most recent logfile: %s" % (path, ))
|
self.progress("Most recent logfile: %s" % (path, ), send_statustext=send_statustext)
|
||||||
|
|
||||||
def run_one_test_attempt(self, test, interact=False, attempt=1, do_fail_list=True):
|
def run_one_test_attempt(self, test, interact=False, attempt=1, do_fail_list=True):
|
||||||
'''called by run_one_test to actually run the test in a retry loop'''
|
'''called by run_one_test to actually run the test in a retry loop'''
|
||||||
@ -5717,7 +5717,7 @@ Also, ignores heartbeats not from our target system'''
|
|||||||
try:
|
try:
|
||||||
self.context_pop()
|
self.context_pop()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.print_exception_caught(e)
|
self.print_exception_caught(e, send_statustext=False)
|
||||||
self.progress("Not alive after test", send_statustext=False)
|
self.progress("Not alive after test", send_statustext=False)
|
||||||
passed = False
|
passed = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user