Skip to content

Commit

Permalink
validate_failures.py: Fix performance regression
Browse files Browse the repository at this point in the history
2013-02-06  Bernhard Reutner-Fischer  <[email protected]>

	* testsuite-management/validate_failures.py
	(IsInterestingResult): Fix performance regression

From-SVN: r195811
  • Loading branch information
Bernhard Reutner-Fischer committed Feb 6, 2013
1 parent 4762585 commit 143c83f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions contrib/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-02-06 Bernhard Reutner-Fischer <[email protected]>

* testsuite-management/validate_failures.py
(IsInterestingResult): Fix performance regression

2013-02-04 Richard Sandiford <[email protected]>

* update-copyright.py: New file.
Expand Down
3 changes: 2 additions & 1 deletion contrib/testsuite-management/validate_failures.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

# Handled test results.
_VALID_TEST_RESULTS = [ 'FAIL', 'UNRESOLVED', 'XPASS', 'ERROR' ]
_VALID_TEST_RESULTS_REX = re.compile("%s" % "|".join(_VALID_TEST_RESULTS))

# Subdirectory of srcdir in which to find the manifest file.
_MANIFEST_SUBDIR = 'contrib/testsuite-management'
Expand Down Expand Up @@ -210,7 +211,7 @@ def IsInterestingResult(line):
if '|' in line:
(_, line) = line.split('|', 1)
line = line.strip()
return any(line.startswith(result) for result in _VALID_TEST_RESULTS)
return bool(_VALID_TEST_RESULTS_REX.match(line))


def IsInclude(line):
Expand Down

0 comments on commit 143c83f

Please sign in to comment.