lit: Allow test_format to be None.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2010-05-05 17:22:35 +00:00
parent 66760be919
commit e4eae84f76

View File

@ -258,6 +258,7 @@ def getTestsInSuite(ts, path_in_suite, litConfig,
lc = getLocalConfig(ts, path_in_suite, litConfig, localConfigCache) lc = getLocalConfig(ts, path_in_suite, litConfig, localConfigCache)
# Search for tests. # Search for tests.
if lc.test_format is not None:
for res in lc.test_format.getTestsInDirectory(ts, path_in_suite, for res in lc.test_format.getTestsInDirectory(ts, path_in_suite,
litConfig, lc): litConfig, lc):
yield res yield res