aboutsummaryrefslogtreecommitdiffstats
path: root/utils/lit/lit/TestFormats.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-25 07:10:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-25 07:10:01 +0000
commitf104f5b17acdc613f76f733cd1c7ea1e4370ab07 (patch)
tree2921a33de362ff7d9707d88f66581ff898cf60e5 /utils/lit/lit/TestFormats.py
parentd5d5a3dcbaa4e7f394ba045e2d7d0ec3aa76f50c (diff)
downloadexternal_llvm-f104f5b17acdc613f76f733cd1c7ea1e4370ab07.tar.gz
external_llvm-f104f5b17acdc613f76f733cd1c7ea1e4370ab07.tar.bz2
external_llvm-f104f5b17acdc613f76f733cd1c7ea1e4370ab07.zip
lit: Add LitTestCase and lit.load_test_suite, for adapting lit based suites for
use with Python's unittest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/lit/TestFormats.py')
-rw-r--r--utils/lit/lit/TestFormats.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py
index 433e39a627..7ab9bb6e45 100644
--- a/utils/lit/lit/TestFormats.py
+++ b/utils/lit/lit/TestFormats.py
@@ -90,8 +90,9 @@ class FileBasedTest(object):
litConfig, localConfig):
source_path = testSuite.getSourcePath(path_in_suite)
for filename in os.listdir(source_path):
- # Ignore dot files.
- if filename.startswith('.'):
+ # Ignore dot files and excluded tests.
+ if (filename.startswith('.') or
+ filename in localConfig.excludes):
continue
filepath = os.path.join(source_path, filename)