From 199f4ab3e4e88602090008ff200240c216a3e23e Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Thu, 2 Jun 2016 19:12:47 -0400 Subject: [PATCH] Fixing report of XFAIL tests by email --- lib/racyanalyze.py | 4 ++-- lib/sumfiles.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/racyanalyze.py b/lib/racyanalyze.py index 7d30174..87c2bf4 100644 --- a/lib/racyanalyze.py +++ b/lib/racyanalyze.py @@ -20,12 +20,12 @@ class GDBAnalyzeRacyTests (ShellCommand): racy_tests = p.read_racy_sum_text (self.getLog ('stdio').getText ()) - if not racy_tests or not racy_tests[1]: + if not racy_tests: return SUCCESS msg = "*** Regressions found ***\n" msg += "============================\n" - for t in racy_tests: + for t in racy_tests[0]: msg += "FAIL: %s\n" % t msg += "============================\n" diff --git a/lib/sumfiles.py b/lib/sumfiles.py index 9ffb821..1039103 100644 --- a/lib/sumfiles.py +++ b/lib/sumfiles.py @@ -39,7 +39,6 @@ class DejaResults(object): line = line.rstrip() if not is_racy_file: # Removing special XFAIL comment added by script. - line = re.sub (' ##\|##.*', '', line) m = re.match(sum_matcher, line) else: m = re.match (racy_file_matcher, line)