Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(854)

Unified Diff: test/compiler-unittests/testcfg.py

Issue 485273004: Fix parsing of --gtest_list_tests output. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/compiler-unittests/testcfg.py
diff --git a/test/compiler-unittests/testcfg.py b/test/compiler-unittests/testcfg.py
index 4eec956f7e3cca07d0cbccb4724e8884e62e355f..dec21f6e6e1fd89ccf12afce0c40d279831d7357 100644
--- a/test/compiler-unittests/testcfg.py
+++ b/test/compiler-unittests/testcfg.py
@@ -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:
test = testcase.TestCase(self, test_case + test_desc, dependency=None)
tests.append(test)
tests.sort()

Powered by Google App Engine
This is Rietveld 408576698