Improve XFAIL section in the email
This commit is contained in:
parent
199f4ab3e4
commit
fb6ad2e403
1 changed files with 12 additions and 15 deletions
27
master.cfg
27
master.cfg
|
@ -355,21 +355,18 @@ 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:
|
||||||
# for log in build.getLogs ():
|
xfail_commit = os.path.join (gdb_web_base, name, 'xfails', branch, '.last-commit')
|
||||||
# if log.getStep ().getName () == 'regressions' and log.getName () == 'baseline_diff':
|
text += "\n\n*** Complete list of XFAILs for this builder ***\n\n"
|
||||||
# text += "\n\n*** Regressions against the baseline ***\n"
|
if os.path.exists (xfail_commit):
|
||||||
# text += "============================\n"
|
with open (xfail_commit, 'r') as f:
|
||||||
# text += log.getText ()
|
com = f.read ().strip ('\n')
|
||||||
# text += "============================\n"
|
text += "To obtain the list of XFAIL tests for this builder, go to:\n\n"
|
||||||
# break
|
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 += "You can also see a pretty-printed version of the list, with more information\n"
|
||||||
xfail = os.path.join (gdb_web_base, name, 'xfails', branch, 'xfail')
|
text += "about each XFAIL, by going to:\n\n"
|
||||||
if os.path.exists (xfail):
|
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 += "\n\n*** Complete list of XFAILs for this builder ***\n"
|
else:
|
||||||
text += "============================\n"
|
text += "FAILURE TO OBTAIN THE COMMIT FOR THE XFAIL LIST. PLEASE CONTACT THE BUILDBOT ADMIN.\n"
|
||||||
with open (xfail, 'r') as f:
|
|
||||||
text += f.read ()
|
|
||||||
text += "============================\n"
|
|
||||||
text += "\n"
|
text += "\n"
|
||||||
|
|
||||||
if report_build_breakage:
|
if report_build_breakage:
|
||||||
|
|
Loading…
Reference in a new issue