More fixes to racy detection

This commit is contained in:
Sergio Durigan Junior 2016-03-21 18:35:47 -04:00
parent 30a2648b24
commit f561d36e23
2 changed files with 4 additions and 3 deletions

View file

@ -18,7 +18,7 @@ class GDBAnalyzeRacyTests (ShellCommand):
p = DejaResults ()
racy_tests = p.read_sum_text (self.getLog ('stdio').getText ())
racy_tests = p.read_racy_sum_text (self.getLog ('stdio').getText ())
xfails = p.read_xfail (builder, branch)
if not racy_tests or not racy_tests[1]:

View file

@ -9,7 +9,7 @@ from collections import OrderedDict
# Helper regex for parse_sum_line.
sum_matcher = re.compile('^(.?(PASS|FAIL)): (.*)$')
racy_file_matcher = re.compile ('^(gdb\.*)')
racy_file_matcher = re.compile ('^(gdb\..*)')
# You must call set_web_base at startup to set this.
gdb_web_base = None
@ -116,7 +116,8 @@ class DejaResults(object):
result.append (dict ())
with open (fname, 'r') as f:
for line in f:
self.parse_sum_line (result, line, is_racy_file)
self.parse_sum_line (result, line,
is_racy_file = is_racy_file)
else:
result = None
return result