Improving check for xfail directory

This commit is contained in:
Sergio Durigan Junior 2016-06-14 14:24:47 -04:00
parent 085e1e0ac9
commit 7eab0bb490

View file

@ -355,18 +355,19 @@ 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 found_regressions: if found_regressions:
xfail_commit = os.path.join (gdb_web_base, name, 'xfails', branch, '.last-commit') if os.path.exists (os.path.join (gdb_web_base, name)):
text += "\n\n*** Complete list of XFAILs for this builder ***\n\n" xfail_commit = os.path.join (gdb_web_base, name, 'xfails', branch, '.last-commit')
if os.path.exists (xfail_commit): text += "\n\n*** Complete list of XFAILs for this builder ***\n\n"
with open (xfail_commit, 'r') as f: if os.path.exists (xfail_commit):
com = f.read ().strip ('\n') with open (xfail_commit, 'r') as f:
text += "To obtain the list of XFAIL tests for this builder, go to:\n\n" com = f.read ().strip ('\n')
text += "\t<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/%s/xfails/%s/xfail;hb=%s>\n\n" % (name, branch, com) text += "To obtain the list of XFAIL tests for this builder, go to:\n\n"
text += "You can also see a pretty-printed version of the list, with more information\n" text += "\t<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/%s/xfails/%s/xfail;hb=%s>\n\n" % (name, branch, com)
text += "about each XFAIL, by going to:\n\n" text += "You can also see a pretty-printed version of the list, with more information\n"
text += "\t<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/%s/xfails/%s/xfail.table;hb=%s>\n" % (name, branch, com) text += "about each XFAIL, by going to:\n\n"
else: text += "\t<http://git.sergiodj.net/?p=gdb-xfails.git;a=blob;f=xfails/%s/xfails/%s/xfail.table;hb=%s>\n" % (name, branch, com)
text += "FAILURE TO OBTAIN THE COMMIT FOR THE XFAIL LIST. PLEASE CONTACT THE BUILDBOT ADMIN.\n" else:
text += "FAILURE TO OBTAIN THE COMMIT FOR THE XFAIL LIST. PLEASE CONTACT THE BUILDBOT ADMIN.\n"
text += "\n" text += "\n"
if report_build_breakage: if report_build_breakage: