Adjust printing of xfail file in email

This commit is contained in:
Sergio Durigan Junior 2015-01-23 20:38:28 -05:00
parent 8fc0e84d2f
commit 2d73e65bd4

View file

@ -136,9 +136,10 @@ def MessageGDBTesters (mode, name, build, results, master_status):
"""This function is responsible for composing the message that will be """This function is responsible for composing the message that will be
send to the gdb-testers mailing list.""" send to the gdb-testers mailing list."""
git_url = "http://gdb-build.sergiodj.net/cgit" git_url = "http://gdb-build.sergiodj.net/cgit"
branch = build.getSourceStamps ()[0].branch
# Subject # Subject
subj = "Failures on %s, branch %s" % (name, build.getSourceStamps ()[0].branch) subj = "Failures on %s, branch %s" % (name, branch)
# Body # Body
text = "" text = ""
@ -215,7 +216,7 @@ send to the gdb-testers mailing list."""
# Including the 'xfail' log. It is important to say which tests # Including the 'xfail' log. It is important to say which tests
# we are ignoring. # we are ignoring.
if print_xfail: if print_xfail:
xfail = os.path.join (gdb_web_base, name, 'xfail') xfail = os.path.join (gdb_web_base, name, 'xfails', branch, 'xfail')
if os.path.exists (xfail): if os.path.exists (xfail):
text += "\n" text += "\n"
text += "Failures that are being ignored:\n\n" text += "Failures that are being ignored:\n\n"