Improving racy analyzer

This commit is contained in:
Sergio Durigan Junior 2016-03-20 14:21:10 -04:00
parent 6a671d9b07
commit a2bd0f0a9f

View file

@ -21,7 +21,12 @@ class GDBAnalyzeRacyTests (ShellCommand):
racy_tests = p.read_sum_text (self.getLog ('stdio').getText ()) racy_tests = p.read_sum_text (self.getLog ('stdio').getText ())
xfails = p.read_xfail (builder, branch) xfails = p.read_xfail (builder, branch)
unique_tests = racy_tests[1]['NONE'] - xfails[1]['FAIL'] if not racy_tests[1]:
return SUCCESS
elif not xfails[1]:
unique_tests = racy_tests[1]['NONE']
else:
unique_tests = racy_tests[1]['NONE'] - xfails[1]['FAIL']
msg = "============================\n" msg = "============================\n"
for t in unique_tests: for t in unique_tests:
@ -35,7 +40,7 @@ class GDBAnalyzeRacyTests (ShellCommand):
s = smtplib.SMTP ('localhost') s = smtplib.SMTP ('localhost')
s.sendmail ('gdb-buildbot@sergiodj.net', s.sendmail ('gdb-buildbot@sergiodj.net',
[ 'GDB BuildBot Racy Detector <gdb-buildbot@sergiodj.net>' ], [ 'gdb-buildbot@sergiodj.net' ],
mail.as_string ()) mail.as_string ())
s.quit () s.quit ()