From 9c20adfd7c9d82085bc4506e0e947e5e4c2ee672 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sun, 8 Feb 2015 17:30:07 -0500 Subject: [PATCH] Adding patch --- master.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/master.cfg b/master.cfg index e3ef3be..af64031 100644 --- a/master.cfg +++ b/master.cfg @@ -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)