1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

utils/lit/lit/TestFormats.py: [PR8438] unittests: Seek *Tests (not BUILD_MODE/*Tests) under whole unittests/ if BUILD_MODE == '.'

llvm-svn: 121118
This commit is contained in:
NAKAMURA Takumi 2010-12-07 07:41:32 +00:00
parent e9ad42c89e
commit 0413f5e1cb

View File

@ -59,8 +59,9 @@ class GoogleTest(object):
source_path = testSuite.getSourcePath(path_in_suite)
for filename in os.listdir(source_path):
# Check for the one subdirectory (build directory) tests will be in.
if not os.path.normcase(filename) in self.test_sub_dir:
continue
if not '.' in self.test_sub_dir:
if not os.path.normcase(filename) in self.test_sub_dir:
continue
filepath = os.path.join(source_path, filename)
if not os.path.isdir(filepath):