diff --git a/master.cfg b/master.cfg index 7fcba71..17b64ea 100644 --- a/master.cfg +++ b/master.cfg @@ -118,43 +118,43 @@ def MessageGDBTesters (mode, name, build, results, master_status): """This function is responsible for composing the message that will be send to the gdb-testers mailing list.""" # Subject - subj = r"Failures on %s" % name + subj = "Failures on %s" % name # Body - text = r"" + text = "" # Buildslave name, useful for knowing the exact configuration. - text += r"Builder:\n" - text += r"\t%s\n" % build.getSlavename () + text += "Builder:\n" + text += "\t%s\n" % build.getSlavename () # Commits that were tested. Usually we should be dealing with # only one commit - text += r"Commit(s) tested:\n" + text += "Commit(s) tested:\n" ss_list = build.getSourceStamps () for ss in ss_list: - text += r"\t%s\n" % ss.revision + text += "\t%s\n" % ss.revision # URL to find more info about what went wrong. - text += r"Log URL(s):\n" + text += "Log URL(s):\n" for ss in ss_list: - text += r"\t<%sresults/%s/%s>\n" % (master_status.getBuildbotURL (), name, ss.revision) + text += "\t<%sresults/%s/%s>\n" % (master_status.getBuildbotURL (), name, ss.revision) # Who's to blame? - text += r"Author(s):\n" + text += "Author(s):\n" for author in build.getResponsibleUsers(): - text += r"\t%s\n" % author + text += "\t%s\n" % author # Including the 'regressions' log. This is the 'diff' of what # went wrong. - text += r"\n" - text += r"============================\n" + text += "\n" + text += "============================\n" for log in build.getLogs (): if log.getName () == 'regressions': if not log.hasContents (): # If the 'regressions' log has no content, it probably # means that the test failed because of a timeout or # something. In this case, we just warn. - text += r"<< TESTING FAILED (probably timeout) >>\nPlease check the logs on the web\n" + text += "<< TESTING FAILED (probably timeout) >>\nPlease check the logs on the web\n" else: text += log.getText () break @@ -162,24 +162,24 @@ send to the gdb-testers mailing list.""" # Including the 'xfail' log. It is important to say which tests # we are ignoring. - xfail = os.path.join (gdb_web_base, name, r'xfail') + xfail = os.path.join (gdb_web_base, name, 'xfail') if os.path.exists (xfail): - text += r"\n" - text += r"Failures that are being ignored:\n\n" + text += "\n" + text += "Failures that are being ignored:\n\n" with open (xfail, 'r') as f: text += f.read () - text += r"\n" + text += "\n" return { 'body' : text, - 'type' : r'plain', + 'type' : 'plain', 'subject' : subj } from buildbot.status import mail -mn = mail.MailNotifier(fromaddr = r"sergiodj@redhat.com", +mn = mail.MailNotifier(fromaddr = "sergiodj@redhat.com", sendToInterestedUsers = False, - extraRecipients = [r'sergiodj@redhat.com'], + extraRecipients = ['sergiodj@redhat.com'], # extraRecipients = ['gdb-testers@sourceware.org'], - relayhost = r"smtp.corp.redhat.com", - mode = (r'failing'), + relayhost = "smtp.corp.redhat.com", + mode = ('failing'), smtpPort = 25, messageFormatter = MessageGDBTesters, extraHeaders = { 'X-GDB-Buildbot' : '1' })