diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-12-07 07:41:32 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2010-12-07 07:41:32 +0000 |
commit | 280423558dc9004ed686f474b0508ac7a298108a (patch) | |
tree | 59fdd9bd9ccfba19fccecf1b92608d4c73bffd34 /utils/lit | |
parent | b3d37e3097ad5547c9641d8419dd1970c5711cd1 (diff) | |
download | external_llvm-280423558dc9004ed686f474b0508ac7a298108a.zip external_llvm-280423558dc9004ed686f474b0508ac7a298108a.tar.gz external_llvm-280423558dc9004ed686f474b0508ac7a298108a.tar.bz2 |
utils/lit/lit/TestFormats.py: [PR8438] unittests: Seek *Tests (not BUILD_MODE/*Tests) under whole unittests/ if BUILD_MODE == '.'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r-- | utils/lit/lit/TestFormats.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/lit/lit/TestFormats.py b/utils/lit/lit/TestFormats.py index d4e6625..230995a 100644 --- a/utils/lit/lit/TestFormats.py +++ b/utils/lit/lit/TestFormats.py @@ -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): |