utils/lit/lit/TestFormats.py: [PR8438] unittests: Seek *Tests (not BUILD_MODE/*Tests...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 7 Dec 2010 07:41:32 +0000 (07:41 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 7 Dec 2010 07:41:32 +0000 (07:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121118 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestFormats.py

index d4e662534d8ef9c5eaa9386c6b389cf8001805fa..230995a34b22d64f985e6b76181de8382b924bd8 100644 (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):