Adding subject in the report e-mail; adding missing \n in the root message

This commit is contained in:
Sergio Durigan Junior 2015-08-07 12:39:24 -04:00
parent ca05efdbc7
commit ec5fa8a5c3

View file

@ -158,7 +158,8 @@ def SendRootMessageGDBTesters (branch, change):
text += "Branch: %s\n" % branch text += "Branch: %s\n" % branch
text += "Commit: %s\n\n" % rev text += "Commit: %s\n\n" % rev
text += change.comments + "\n" text += change.comments.split ('\n')[0] + "\n\n"
text += '\n'.join (change.comments.split ('\n')[1:])
chg_title = change.comments.split ('\n')[0] chg_title = change.comments.split ('\n')[0]
mail = MIMEText (text) mail = MIMEText (text)
@ -264,6 +265,10 @@ send to the gdb-testers mailing list."""
for chg in ss.changes: for chg in ss.changes:
text += "\t%s\n" % chg.who text += "\t%s\n" % chg.who
# Subject of the changes
text += "\nSubject:\n"
text += "\t%s\n" % cur_change.comments.split ('\n')[0]
# URL to find more info about what went wrong. # URL to find more info about what went wrong.
text += "\nTestsuite log (gdb.sum and gdb.log) URL(s):\n" text += "\nTestsuite log (gdb.sum and gdb.log) URL(s):\n"
for ss in ss_list: for ss in ss_list: