validate_failures.py: also ignore .git
2012-12-01 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> * testsuite-management/validate_failures.py (IsInterestingResult): Only strip line a second time if we did split. Rephrase return statement while at it. (CollectSumFiles): Also ignore .git directory. From-SVN: r194182
This commit is contained in:
parent
3eb9e389a6
commit
7fb1e5929d
2 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,10 @@
|
|||
2012-12-01 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
|
||||
|
||||
* testsuite-management/validate_failures.py
|
||||
(IsInterestingResult): Only strip line a second time if we did split.
|
||||
Rephrase return statement while at it.
|
||||
(CollectSumFiles): Also ignore .git directory.
|
||||
|
||||
2012-12-03 Diego Novillo <dnovillo@google.com>
|
||||
|
||||
* testsuite-management/validate_failures.py: Fix stale
|
||||
|
|
|
@ -209,11 +209,8 @@ def IsInterestingResult(line):
|
|||
"""Return True if line is one of the summary lines we care about."""
|
||||
if '|' in line:
|
||||
(_, line) = line.split('|', 1)
|
||||
line = line.strip()
|
||||
for result in _VALID_TEST_RESULTS:
|
||||
if line.startswith(result):
|
||||
return True
|
||||
return False
|
||||
line = line.strip()
|
||||
return any(line.startswith(result) for result in _VALID_TEST_RESULTS)
|
||||
|
||||
|
||||
def IsInclude(line):
|
||||
|
@ -307,8 +304,9 @@ def GetManifest(manifest_path):
|
|||
def CollectSumFiles(builddir):
|
||||
sum_files = []
|
||||
for root, dirs, files in os.walk(builddir):
|
||||
if '.svn' in dirs:
|
||||
dirs.remove('.svn')
|
||||
for ignored in ('.svn', '.git'):
|
||||
if ignored in dirs:
|
||||
dirs.remove(ignored)
|
||||
for fname in files:
|
||||
if fname.endswith('.sum'):
|
||||
sum_files.append(os.path.join(root, fname))
|
||||
|
|
Loading…
Add table
Reference in a new issue