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

Unified Diff: tests/gtest_fake/gtest_fake_pass.py

Issue 12459014: Implement clustering support in run_test_cases.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/swarm_client
Patch Set: Created 7 years, 9 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: tests/gtest_fake/gtest_fake_pass.py
diff --git a/tests/gtest_fake/gtest_fake_pass.py b/tests/gtest_fake/gtest_fake_pass.py
index cd2ba2fdb8bf67933184eed08fbfa395c1f539e4..ede37680eef0cde93c10d72d96f62efefcbb25ce 100755
--- a/tests/gtest_fake/gtest_fake_pass.py
+++ b/tests/gtest_fake/gtest_fake_pass.py
@@ -28,6 +28,7 @@ TOTAL = sum(len(v) for v in TESTS.itervalues())
def main():
parser = optparse.OptionParser()
parser.add_option('--gtest_list_tests', action='store_true')
+ parser.add_option('--gtest_print_time', action='store_true')
csharp 2013/03/11 13:33:22 Maybe worth creating a gtest_fake_base class to gr
M-A Ruel 2013/03/11 17:30:53 I'd prefer not do that until they get >100 lines,
parser.add_option('--gtest_filter')
options, args = parser.parse_args()
if args:
@@ -45,7 +46,8 @@ def main():
if options.gtest_filter:
# Simulate running one test.
print 'Note: Google Test filter = %s\n' % options.gtest_filter
- print gtest_fake_base.get_test_output(options.gtest_filter)
+ for i in options.gtest_filter.split(':'):
+ print gtest_fake_base.get_test_output(i)
print gtest_fake_base.get_footer(1, 1)
return 0

Powered by Google App Engine
This is Rietveld 408576698