diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-05-05 17:22:35 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-05 17:22:35 +0000 |
| commit | d6e76fb20c071c78e43898dfc5151f77e1a10181 (patch) | |
| tree | c02262ad3a85f7978feed0c8c85791a5616e6de4 /llvm/utils | |
| parent | 6fa3cd26e99fb74b5f0f750bc0c3c727a85bce22 (diff) | |
| download | bcm5719-llvm-d6e76fb20c071c78e43898dfc5151f77e1a10181.tar.gz bcm5719-llvm-d6e76fb20c071c78e43898dfc5151f77e1a10181.zip | |
lit: Allow test_format to be None.
llvm-svn: 103091
Diffstat (limited to 'llvm/utils')
| -rwxr-xr-x | llvm/utils/lit/lit/lit.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/lit.py b/llvm/utils/lit/lit/lit.py index a29fa42101c..3de1084e6aa 100755 --- a/llvm/utils/lit/lit/lit.py +++ b/llvm/utils/lit/lit/lit.py @@ -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): |

