autotest: show logs on timeout

This commit is contained in:
Andrew Tridgell 2012-06-16 06:47:55 +10:00
parent b2f8fad0a3
commit 28d62416fe
1 changed files with 8 additions and 0 deletions

View File

@ -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: