[llvm] r182761 - Revert r182715 and r182758
Alexey Samsonov
samsonov at google.com
Tue May 28 03:08:08 PDT 2013
Author: samsonov
Date: Tue May 28 05:08:08 2013
New Revision: 182761
URL: http://llvm.org/viewvc/llvm-project?rev=182761&view=rev
Log:
Revert r182715 and r182758
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=182761&r1=182760&r2=182761&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestFormats.py (original)
+++ llvm/trunk/utils/lit/lit/TestFormats.py Tue May 28 05:08:08 2013
@@ -61,9 +61,9 @@ class GoogleTest(object):
(dirname, basename) = os.path.split(execpath)
# Discover the tests in this executable.
for testname in self.getGTestTests(execpath, litConfig, localConfig):
- testPath_in_suite = path_in_suite + (testname, )
- yield Test.Test(testSuite, testPath_in_suite, localConfig)
-
+ testPath = path_in_suite + (dirname, basename, testname)
+ yield Test.Test(testSuite, testPath, localConfig)
+
def getTestsInDirectory(self, testSuite, path_in_suite,
litConfig, localConfig):
source_path = testSuite.getSourcePath(path_in_suite)
@@ -73,17 +73,15 @@ class GoogleTest(object):
# Iterate over executables in a directory.
if not os.path.normcase(filename) in self.test_sub_dir:
continue
- filepath_in_suite = path_in_suite + (filename, )
for subfilename in os.listdir(filepath):
execpath = os.path.join(filepath, subfilename)
for test in self.getTestsInExecutable(
- testSuite, filepath_in_suite, execpath,
+ testSuite, path_in_suite, execpath,
litConfig, localConfig):
yield test
elif ('.' in self.test_sub_dir):
- filepath_in_suite = path_in_suite + (filename, )
for test in self.getTestsInExecutable(
- testSuite, filepath_in_suite, filepath,
+ testSuite, path_in_suite, filepath,
litConfig, localConfig):
yield test
More information about the llvm-commits
mailing list