Including comment on try build email

This commit is contained in:
Sergio Durigan Junior 2017-09-13 01:03:48 -04:00
parent 3145fbefb8
commit 3cdfa669d5

View file

@ -149,7 +149,8 @@ def SendRootMessageGDBTesters (branch, change, rev,
istrysched = False, istrysched = False,
try_to = None, try_to = None,
try_count = "0", try_count = "0",
try_msgid = ""): try_msgid = None,
try_comment = None):
global GDB_MAIL_TO, GDB_MAIL_FROM global GDB_MAIL_TO, GDB_MAIL_FROM
if istrysched: if istrysched:
@ -184,7 +185,7 @@ def SendRootMessageGDBTesters (branch, change, rev,
text += "Branch: %s\n" % branch text += "Branch: %s\n" % branch
text += "Commit tested against: %s\n\n" % rev text += "Commit tested against: %s\n\n" % rev
text += '\n'.join (change.comments.split ('\n')) text += try_comment
text += '\n' text += '\n'
@ -444,12 +445,14 @@ send to the gdb-testers mailing list."""
isrebuild = properties.getProperty ('isRebuild') isrebuild = properties.getProperty ('isRebuild')
try_count = properties.getProperty ('try_count') try_count = properties.getProperty ('try_count')
try_msgid = properties.getProperty ('root_message_id') try_msgid = properties.getProperty ('root_message_id')
try_comment = sourcestamp.patch_info[1]
try_to = build.getReason ().strip ("'try' job by user ") try_to = build.getReason ().strip ("'try' job by user ")
# Sending the root message to gdb-testers. # Sending the root message to gdb-testers.
SendRootMessageGDBTesters (branch, cur_change, properties.getProperty ('revision'), SendRootMessageGDBTesters (branch, cur_change, properties.getProperty ('revision'),
istrysched = True, try_to = try_to, istrysched = True, try_to = try_to,
try_count = try_count, try_msgid = try_msgid) try_count = try_count, try_msgid = try_msgid,
try_comment = try_comment)
# Subject # Subject
subj = "Try Build #%s on %s, branch %s" % (try_count, name, branch) subj = "Try Build #%s on %s, branch %s" % (try_count, name, branch)