[llvm-commits] [llvm] r95803 - /llvm/trunk/utils/lit/lit/TestFormats.py
Daniel Dunbar
daniel at zuster.org
Wed Feb 10 13:00:55 PST 2010
Author: ddunbar
Date: Wed Feb 10 15:00:55 2010
New Revision: 95803
URL: http://llvm.org/viewvc/llvm-project?rev=95803&view=rev
Log:
lit: Ignore dot files when scanning for tests (e.g., editor temprary files,
etc.)
Modified:
llvm/trunk/utils/lit/lit/TestFormats.py
Modified: llvm/trunk/utils/lit/lit/TestFormats.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestFormats.py?rev=95803&r1=95802&r2=95803&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestFormats.py (original)
+++ llvm/trunk/utils/lit/lit/TestFormats.py Wed Feb 10 15:00:55 2010
@@ -87,6 +87,10 @@
litConfig, localConfig):
source_path = testSuite.getSourcePath(path_in_suite)
for filename in os.listdir(source_path):
+ # Ignore dot files.
+ if filename.startswith('.'):
+ continue
+
filepath = os.path.join(source_path, filename)
if not os.path.isdir(filepath):
base,ext = os.path.splitext(filename)
@@ -137,7 +141,8 @@
d not in localConfig.excludes)]
for filename in filenames:
- if (not self.pattern.match(filename) or
+ if (filename.startswith('.') or
+ not self.pattern.match(filename) or
filename in localConfig.excludes):
continue
More information about the llvm-commits
mailing list