diff --git a/master.cfg b/master.cfg index 0b1c343..3bcd8a6 100644 --- a/master.cfg +++ b/master.cfg @@ -158,18 +158,32 @@ def SendRootMessageGDBTesters (branch, change, istrysched = False, # WE HAVE TO REMEMBER TO CLEAN THESE FILES REGULARLY open (f, 'w').close () - text = "" - text += "*** TEST RESULTS FOR COMMIT %s ***\n\n" % rev + if not istrysched: + text = "" + text += "*** TEST RESULTS FOR COMMIT %s ***\n\n" % rev - text += "Author: %s\n" % change.who - text += "Branch: %s\n" % branch - text += "Commit: %s\n\n" % rev + text += "Author: %s\n" % change.who + text += "Branch: %s\n" % branch + text += "Commit: %s\n\n" % rev - text += change.comments.split ('\n')[0] + "\n\n" - text += '\n'.join (change.comments.split ('\n')[1:]) + text += change.comments.split ('\n')[0] + "\n\n" + text += '\n'.join (change.comments.split ('\n')[1:]) + + 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') - chg_title = change.comments.split ('\n')[0] - text = text.encode ('ascii', 'ignore').decode ('ascii') mail = MIMEText (text) if branch == 'master': sbj = "[binutils-gdb] %s" % chg_title