summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2010-12-07 07:41:32 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2010-12-07 07:41:32 +0000
commit182ea825a94aa5c8f3c13aea9cb532d86ab11cae (patch)
tree0fa7f9afc64e463a7f3f9df7d088acf968464642
parent7291ebc3534ec73fec660451c81544cff3f8fbf9 (diff)
downloadbcm5719-llvm-182ea825a94aa5c8f3c13aea9cb532d86ab11cae.tar.gz
bcm5719-llvm-182ea825a94aa5c8f3c13aea9cb532d86ab11cae.zip
utils/lit/lit/TestFormats.py: [PR8438] unittests: Seek *Tests (not BUILD_MODE/*Tests) under whole unittests/ if BUILD_MODE == '.'
llvm-svn: 121118
-rw-r--r--llvm/utils/lit/lit/TestFormats.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/utils/lit/lit/TestFormats.py b/llvm/utils/lit/lit/TestFormats.py
index d4e662534d8..230995a34b2 100644
--- a/llvm/utils/lit/lit/TestFormats.py
+++ b/llvm/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):
OpenPOWER on IntegriCloud