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,6 +21,11 @@ class GDBAnalyzeRacyTests (ShellCommand):
racy_tests = p.read_sum_text (self.getLog ('stdio').getText ())
xfails = p.read_xfail (builder, branch)
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"
@ -35,7 +40,7 @@ class GDBAnalyzeRacyTests (ShellCommand):
s = smtplib.SMTP ('localhost')
s.sendmail ('gdb-buildbot@sergiodj.net',
[ 'GDB BuildBot Racy Detector <gdb-buildbot@sergiodj.net>' ],
[ 'gdb-buildbot@sergiodj.net' ],
mail.as_string ())
s.quit ()