Improve headers on email, based on Pedro's suggestions

This commit is contained in:
Sergio Durigan Junior 2016-05-24 00:01:29 -04:00
parent 864ec709ef
commit af0b847e01

View file

@ -345,7 +345,7 @@ send to the gdb-testers mailing list."""
quote (n), quote (log.getName ()))
continue
elif n == 'regressions' and log.getName () == 'regressions':
text += "*** Regressions found ***\n"
text += "*** Diff to previous build ***\n"
text += "============================\n"
text += log.getText ()
text += "============================\n"
@ -355,17 +355,17 @@ send to the gdb-testers mailing list."""
# Including the 'xfail' log. It is important to say which tests
# we are ignoring.
if found_regressions:
for log in build.getLogs ():
if log.getStep ().getName () == 'regressions' and log.getName () == 'baseline_diff':
text += "\n\n*** Regressions against the baseline ***\n"
text += "============================\n"
text += log.getText ()
text += "============================\n"
break
# for log in build.getLogs ():
# if log.getStep ().getName () == 'regressions' and log.getName () == 'baseline_diff':
# text += "\n\n*** Regressions against the baseline ***\n"
# text += "============================\n"
# text += log.getText ()
# text += "============================\n"
# break
xfail = os.path.join (gdb_web_base, name, 'xfails', branch, 'xfail')
if os.path.exists (xfail):
text += "\n\n*** Failures that are being ignored ***\n"
text += "\n\n*** Racy tests that are not being considered ***\n"
text += "============================\n"
with open (xfail, 'r') as f:
text += f.read ()