summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/TestFormats.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-18 17:42:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-18 17:42:17 +0000
commita5b5be1815971d9c583e07f72c582d31aa18a149 (patch)
tree3107dfdb2ca3e3a8febac549f072c8ecada058c2 /llvm/utils/lit/TestFormats.py
parent49c22a74eb51f0a9d20cd72e5bc8dc995fc993ca (diff)
downloadbcm5719-llvm-a5b5be1815971d9c583e07f72c582d31aa18a149.tar.gz
bcm5719-llvm-a5b5be1815971d9c583e07f72c582d31aa18a149.zip
lit: Fix exclude dirs functionality.
llvm-svn: 89210
Diffstat (limited to 'llvm/utils/lit/TestFormats.py')
-rw-r--r--llvm/utils/lit/TestFormats.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/lit/TestFormats.py b/llvm/utils/lit/TestFormats.py
index f067baedca4..7305c794a2a 100644
--- a/llvm/utils/lit/TestFormats.py
+++ b/llvm/utils/lit/TestFormats.py
@@ -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
OpenPOWER on IntegriCloud