mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +00:00
lit: Ignore dot files when scanning for tests (e.g., editor temprary files,
etc.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bef529182f
commit
cacaa5bff2
@ -87,6 +87,10 @@ class FileBasedTest(object):
|
||||
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 @@ class OneCommandPerFileTest:
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user