Skip to content
Snippets Groups Projects
Commit 0c7e20fe authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

autotest: show logs on timeout

parent 860c88c7
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,14 @@ def alarm_handler(signum, frame):
global results, opts
try:
results.add('TIMEOUT', '<span class="failed-text">FAILED</span>', opts.timeout)
util.pexpect_close_all()
results.addfile('Full Logs', 'autotest-output.txt')
results.addglob('DataFlash Log', '*.flashlog')
results.addglob("MAVLink log", '*.mavlog')
results.addfile('ArduPlane build log', 'ArduPlane.txt')
results.addfile('ArduPlane defaults', 'ArduPlane.defaults.txt')
results.addfile('ArduCopter build log', 'ArduCopter.txt')
results.addfile('ArduCopter defaults', 'ArduCopter.defaults.txt')
write_webresults(results)
os.killpg(0, signal.SIGKILL)
except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment