lit: Don't descend into .git directories during test discovery.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 11 Apr 2013 00:31:35 +0000 (00:31 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 11 Apr 2013 00:31:35 +0000 (00:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179249 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/discovery.py

index c869a671ef723475c69c4960622847cd213e8b5e..b87de74c8b531c1fdb6489497d2a314281275ae6 100644 (file)
@@ -137,7 +137,7 @@ def getTestsInSuite(ts, path_in_suite, litConfig,
     # Search subdirectories.
     for filename in os.listdir(source_path):
         # FIXME: This doesn't belong here?
-        if filename in ('Output', '.svn') or filename in lc.excludes:
+        if filename in ('Output', '.svn', '.git') or filename in lc.excludes:
             continue
 
         # Ignore non-directories.