Revision: 23273
Author: [email protected]
Date: Thu Aug 21 12:36:00 2014 UTC
Log: Fix parsing of --gtest_list_tests output.
[email protected]
Review URL: https://codereview.chromium.org/485273004
http://code.google.com/p/v8/source/detail?r=23273
Modified:
/branches/bleeding_edge/test/base-unittests/testcfg.py
/branches/bleeding_edge/test/compiler-unittests/testcfg.py
/branches/bleeding_edge/test/heap-unittests/testcfg.py
/branches/bleeding_edge/test/runtime-unittests/testcfg.py
=======================================
--- /branches/bleeding_edge/test/base-unittests/testcfg.py Wed Aug 6
09:35:21 2014 UTC
+++ /branches/bleeding_edge/test/base-unittests/testcfg.py Thu Aug 21
12:36:00 2014 UTC
@@ -28,10 +28,11 @@
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()
=======================================
--- /branches/bleeding_edge/test/compiler-unittests/testcfg.py Fri Aug 8
07:04:07 2014 UTC
+++ /branches/bleeding_edge/test/compiler-unittests/testcfg.py Thu Aug 21
12:36:00 2014 UTC
@@ -28,10 +28,11 @@
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()
=======================================
--- /branches/bleeding_edge/test/heap-unittests/testcfg.py Tue Aug 19
10:54:54 2014 UTC
+++ /branches/bleeding_edge/test/heap-unittests/testcfg.py Thu Aug 21
12:36:00 2014 UTC
@@ -28,10 +28,11 @@
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()
=======================================
--- /branches/bleeding_edge/test/runtime-unittests/testcfg.py Tue Aug 19
10:54:54 2014 UTC
+++ /branches/bleeding_edge/test/runtime-unittests/testcfg.py Thu Aug 21
12:36:00 2014 UTC
@@ -28,10 +28,11 @@
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()
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.