[llvm] r179249 - lit: Don't descend into .git directories during test discovery.
Daniel Dunbar
daniel at zuster.org
Wed Apr 10 17:31:35 PDT 2013
Author: ddunbar
Date: Wed Apr 10 19:31:35 2013
New Revision: 179249
URL: http://llvm.org/viewvc/llvm-project?rev=179249&view=rev
Log:
lit: Don't descend into .git directories during test discovery.
Modified:
llvm/trunk/utils/lit/lit/discovery.py
Modified: llvm/trunk/utils/lit/lit/discovery.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/discovery.py?rev=179249&r1=179248&r2=179249&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/discovery.py (original)
+++ llvm/trunk/utils/lit/lit/discovery.py Wed Apr 10 19:31:35 2013
@@ -137,7 +137,7 @@ def getTestsInSuite(ts, path_in_suite, l
# 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.
More information about the llvm-commits
mailing list