Adding patch

This commit is contained in:
Sergio Durigan Junior 2015-02-08 17:30:07 -05:00
parent 55f8189ffc
commit 9c20adfd7c

View file

@ -139,7 +139,7 @@ import smtplib
import socket
from email.mime.text import MIMEText
def SendRootMessageGDBTesters (branch, change):
def SendRootMessageGDBTesters (branch, change, patch):
global GDB_MAIL_TO, GDB_MAIL_FROM
rev = change.revision
f = "/tmp/gdb-buildbot-%s.lock" % rev
@ -160,7 +160,7 @@ def SendRootMessageGDBTesters (branch, change):
text += change.comments + "\n\n"
text += change.patch + "\n"
text += patch[1] + "\n"
mail = MIMEText (text)
mail['Subject'] = "Test results for commit %s on branch %s" % (rev, branch)
@ -178,11 +178,12 @@ send to the gdb-testers mailing list."""
git_url = "http://gdb-build.sergiodj.net/cgit"
branch = build.getSourceStamps ()[0].branch
cur_change = build.getSourceStamps ()[0].changes[0]
patch = build.getSourceStamps ()[0].patch
properties = build.getProperties ()
isrebuild = properties.getProperty ('isRebuild')
# Sending the root message to gdb-testers.
SendRootMessageGDBTesters (branch, cur_change)
SendRootMessageGDBTesters (branch, cur_change, patch)
# Subject
subj = "Failures on %s, branch %s" % (name, branch)