lit: Fix exclude dirs functionality.

llvm-svn: 89210
This commit is contained in:
Daniel Dunbar 2009-11-18 17:42:17 +00:00
parent ac0e7c8aca
commit 157d7f6596

View File

@ -119,8 +119,9 @@ class OneCommandPerFileTest:
if not self.recursive:
subdirs[:] = []
if dirname == '.svn' or dirname in localConfig.excludes:
continue
subdirs[:] = [d for d in subdirs
if (d != '.svn' and
d not in localConfig.excludes)]
for filename in filenames:
if (not self.pattern.match(filename) or