summaryrefslogtreecommitdiff
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
commita7193e40e2fa00a1fbb296416d711cc4e3f2a3c0 (patch)
tree931785bd027b5743399e8554facc4ba1729923cc
parentb5106f5c33b79827ce2d329e0ac9f2780b9fe222 (diff)
downloadllvm-a7193e40e2fa00a1fbb296416d711cc4e3f2a3c0.tar.gz
llvm-a7193e40e2fa00a1fbb296416d711cc4e3f2a3c0.tar.bz2
llvm-a7193e40e2fa00a1fbb296416d711cc4e3f2a3c0.tar.xz
lit: Fix exclude dirs functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89210 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/lit/TestFormats.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/lit/TestFormats.py b/utils/lit/TestFormats.py
index f067baedca..7305c794a2 100644
--- a/utils/lit/TestFormats.py
+++ b/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