Browse Source

autotest: run dumpstack/dumpcore on stuck SITL process

gps-1.3.1
Peter Barker 4 years ago committed by Peter Barker
parent
commit
e1884bcd6e
  1. 5
      Tools/autotest/common.py
  2. 0
      Tools/scripts/dumpcore.sh

5
Tools/autotest/common.py

@ -5865,6 +5865,11 @@ Also, ignores heartbeats not from our target system''' @@ -5865,6 +5865,11 @@ Also, ignores heartbeats not from our target system'''
self.progress("Not alive after test", send_statustext=False)
if self.sitl.isalive():
self.progress("pexpect says it is alive")
for tool in "dumpstack.sh", "dumpcore.sh":
tool_filepath = os.path.join(self.rootdir(), 'Tools', 'scripts', tool)
if util.run_cmd([tool_filepath, str(self.sitl.pid)]) != 0:
self.progress("Failed %s" % (tool,))
return False
else:
self.progress("pexpect says it is dead")
passed = False

0
Tools/scripts/dumpcore.sh

Loading…
Cancel
Save