[llvm-commits] [llvm] r121118 - /llvm/trunk/utils/lit/lit/TestFormats.py
NAKAMURA Takumi
geek4civic at gmail.com
Mon Dec 6 23:41:32 PST 2010
Author: chapuni
Date: Tue Dec 7 01:41:32 2010
New Revision: 121118
URL: http://llvm.org/viewvc/llvm-project?rev=121118&view=rev
Log:
utils/lit/lit/TestFormats.py: [PR8438] unittests: Seek *Tests (not BUILD_MODE/*Tests) under whole unittests/ if BUILD_MODE == '.'
Modified:
llvm/trunk/utils/lit/lit/TestFormats.py
Modified: llvm/trunk/utils/lit/lit/TestFormats.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestFormats.py?rev=121118&r1=121117&r2=121118&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestFormats.py (original)
+++ llvm/trunk/utils/lit/lit/TestFormats.py Tue Dec 7 01:41:32 2010
@@ -59,8 +59,9 @@
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):
More information about the llvm-commits
mailing list