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,9 +258,10 @@ def getTestsInSuite(ts, path_in_suite, litConfig,
lc = getLocalConfig(ts, path_in_suite, litConfig, localConfigCache)
# Search for tests.
for res in lc.test_format.getTestsInDirectory(ts, path_in_suite,
litConfig, lc):
yield res
if lc.test_format is not None:
for res in lc.test_format.getTestsInDirectory(ts, path_in_suite,
litConfig, lc):
yield res
# Search subdirectories.
for filename in os.listdir(source_path):