From 7eab0bb49074f058d000a2247947045770e46b57 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 14 Jun 2016 14:24:47 -0400 Subject: [PATCH] Improving check for xfail directory --- master.cfg | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/master.cfg b/master.cfg index 9f90561..e69dde1 100644 --- a/master.cfg +++ b/master.cfg @@ -355,18 +355,19 @@ send to the gdb-testers mailing list.""" # Including the 'xfail' log. It is important to say which tests # we are ignoring. if found_regressions: - xfail_commit = os.path.join (gdb_web_base, name, 'xfails', branch, '.last-commit') - text += "\n\n*** Complete list of XFAILs for this builder ***\n\n" - if os.path.exists (xfail_commit): - with open (xfail_commit, 'r') as f: - com = f.read ().strip ('\n') - text += "To obtain the list of XFAIL tests for this builder, go to:\n\n" - text += "\t\n\n" % (name, branch, com) - text += "You can also see a pretty-printed version of the list, with more information\n" - text += "about each XFAIL, by going to:\n\n" - text += "\t\n" % (name, branch, com) - else: - text += "FAILURE TO OBTAIN THE COMMIT FOR THE XFAIL LIST. PLEASE CONTACT THE BUILDBOT ADMIN.\n" + if os.path.exists (os.path.join (gdb_web_base, name)): + xfail_commit = os.path.join (gdb_web_base, name, 'xfails', branch, '.last-commit') + text += "\n\n*** Complete list of XFAILs for this builder ***\n\n" + if os.path.exists (xfail_commit): + with open (xfail_commit, 'r') as f: + com = f.read ().strip ('\n') + text += "To obtain the list of XFAIL tests for this builder, go to:\n\n" + text += "\t\n\n" % (name, branch, com) + text += "You can also see a pretty-printed version of the list, with more information\n" + text += "about each XFAIL, by going to:\n\n" + text += "\t\n" % (name, branch, com) + else: + text += "FAILURE TO OBTAIN THE COMMIT FOR THE XFAIL LIST. PLEASE CONTACT THE BUILDBOT ADMIN.\n" text += "\n" if report_build_breakage: