Improving email message when testing failed (probably because of timeout)
This commit is contained in:
parent
27125d82ae
commit
bba18fb712
1 changed files with 10 additions and 2 deletions
10
master.cfg
10
master.cfg
|
@ -146,10 +146,18 @@ send to the gdb-testers mailing list."""
|
||||||
# Including the 'regressions' log. This is the 'diff' of what
|
# Including the 'regressions' log. This is the 'diff' of what
|
||||||
# went wrong.
|
# went wrong.
|
||||||
text += "\n"
|
text += "\n"
|
||||||
|
text += "============================\n"
|
||||||
for log in build.getLogs ():
|
for log in build.getLogs ():
|
||||||
if log.getName () == 'regressions' and log.hasContents ():
|
if log.getName () == 'regressions':
|
||||||
|
if not log.hasContents ():
|
||||||
|
# If the 'regressions' log has no content, it probably
|
||||||
|
# means that the test failed because of a timeout or
|
||||||
|
# something. In this case, we just warn.
|
||||||
|
text += "<< TESTING FAILED (probably timeout) >>\nPlease check the logs on the web\n"
|
||||||
|
else:
|
||||||
text += log.getText ()
|
text += log.getText ()
|
||||||
break
|
break
|
||||||
|
text += "============================\n"
|
||||||
|
|
||||||
# Including the 'xfail' log. It is important to say which tests
|
# Including the 'xfail' log. It is important to say which tests
|
||||||
# we are ignoring.
|
# we are ignoring.
|
||||||
|
|
Loading…
Reference in a new issue