Commit e6d32405 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Fix parsing of --gtest_list_tests output.

R=machenbach@chromium.org

Review URL: https://codereview.chromium.org/485273004

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23273 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent edfd4cdd
......@@ -28,10 +28,11 @@ class BaseUnitTestsSuite(testsuite.TestSuite):
return []
tests = []
test_case = ''
for test_desc in output.stdout.strip().split():
for line in output.stdout.splitlines():
test_desc = line.strip().split()[0]
if test_desc.endswith('.'):
test_case = test_desc
else:
elif test_case and test_desc:
test = testcase.TestCase(self, test_case + test_desc, dependency=None)
tests.append(test)
tests.sort()
......
......@@ -28,10 +28,11 @@ class CompilerUnitTestsSuite(testsuite.TestSuite):
return []
tests = []
test_case = ''
for test_desc in output.stdout.strip().split():
for line in output.stdout.splitlines():
test_desc = line.strip().split()[0]
if test_desc.endswith('.'):
test_case = test_desc
else:
elif test_case and test_desc:
test = testcase.TestCase(self, test_case + test_desc, dependency=None)
tests.append(test)
tests.sort()
......
......@@ -28,10 +28,11 @@ class HeapUnitTestsSuite(testsuite.TestSuite):
return []
tests = []
test_case = ''
for test_desc in output.stdout.strip().split():
for line in output.stdout.splitlines():
test_desc = line.strip().split()[0]
if test_desc.endswith('.'):
test_case = test_desc
else:
elif test_case and test_desc:
test = testcase.TestCase(self, test_case + test_desc, dependency=None)
tests.append(test)
tests.sort()
......
......@@ -28,10 +28,11 @@ class RuntimeUnitTestsSuite(testsuite.TestSuite):
return []
tests = []
test_case = ''
for test_desc in output.stdout.strip().split():
for line in output.stdout.splitlines():
test_desc = line.strip().split()[0]
if test_desc.endswith('.'):
test_case = test_desc
else:
elif test_case and test_desc:
test = testcase.TestCase(self, test_case + test_desc, dependency=None)
tests.append(test)
tests.sort()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment