瀏覽代碼

Don't traverse into .svn directories.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82978 91177308-0d34-0410-b5e6-96231b3b80d8
Daniel Dunbar 16 年之前
父節點
當前提交
705428ae4a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/lit/lit.py

+ 1 - 1
utils/lit/lit.py

@@ -261,7 +261,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 == 'Output' or filename in lc.excludes:
+        if filename in ('Output', '.svn') or filename in lc.excludes:
             continue
 
         # Ignore non-directories.