From f561d36e23b07a28da81dc8b73d3eaa37d67dc1b Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 21 Mar 2016 18:35:47 -0400 Subject: [PATCH] More fixes to racy detection --- lib/racyanalyze.py | 2 +- lib/sumfiles.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/racyanalyze.py b/lib/racyanalyze.py index 6bcf243..27d8b02 100644 --- a/lib/racyanalyze.py +++ b/lib/racyanalyze.py @@ -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]: diff --git a/lib/sumfiles.py b/lib/sumfiles.py index fa6cfa6..52cded3 100644 --- a/lib/sumfiles.py +++ b/lib/sumfiles.py @@ -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