Improving root message formatter
This commit is contained in:
parent
05c9e2ba0e
commit
6f4c6d5dbc
1 changed files with 23 additions and 9 deletions
14
master.cfg
14
master.cfg
|
@ -158,6 +158,7 @@ def SendRootMessageGDBTesters (branch, change, istrysched = False,
|
|||
# WE HAVE TO REMEMBER TO CLEAN THESE FILES REGULARLY
|
||||
open (f, 'w').close ()
|
||||
|
||||
if not istrysched:
|
||||
text = ""
|
||||
text += "*** TEST RESULTS FOR COMMIT %s ***\n\n" % rev
|
||||
|
||||
|
@ -170,6 +171,19 @@ def SendRootMessageGDBTesters (branch, change, istrysched = False,
|
|||
|
||||
chg_title = change.comments.split ('\n')[0]
|
||||
text = text.encode ('ascii', 'ignore').decode ('ascii')
|
||||
else:
|
||||
text = ""
|
||||
text += "*** TEST RESULTS FOR TRY BUILD ***\n\n"
|
||||
|
||||
text += "Branch: %s\n" % branch
|
||||
text += "Commit tested against: %s\n\n" % rev
|
||||
|
||||
text += "Patch tested:\n\n"
|
||||
text += change.patch_body
|
||||
|
||||
chg_title = "Try Build against commit %s" % rev
|
||||
text = text.encode ('ascii', 'ignore').decode ('ascii')
|
||||
|
||||
mail = MIMEText (text)
|
||||
if branch == 'master':
|
||||
sbj = "[binutils-gdb] %s" % chg_title
|
||||
|
|
Loading…
Reference in a new issue