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

Unified Diff: tools/telemetry/telemetry/test_runner.py

Issue 23618042: [telemetry] Add new benchmarks and rename them all. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: tools/telemetry/telemetry/test_runner.py
diff --git a/tools/telemetry/telemetry/test_runner.py b/tools/telemetry/telemetry/test_runner.py
index 9555341ce466f4d5ba8851a216c11ad63e9ce2f8..5c4b16fdb1bb71168c89abe41fdb7f314ab424ca 100644
--- a/tools/telemetry/telemetry/test_runner.py
+++ b/tools/telemetry/telemetry/test_runner.py
@@ -76,8 +76,7 @@ class List(Command):
print 'Available tests are:'
for test_name, test_class in sorted(_GetTests().items()):
if test_class.__doc__:
- print ' %-20s %s' % (test_name,
- test_class.__doc__.splitlines()[0])
+ print ' %-20s %s' % (test_name, test_class.__doc__.splitlines()[0])
else:
print ' %-20s' % test_name
return 0
@@ -125,8 +124,10 @@ def _GetTests():
# Lazy load and cache results.
if not hasattr(_GetTests, 'tests'):
base_dir = util.GetBaseDir()
- _GetTests.tests = discover.DiscoverClasses(base_dir, base_dir, test.Test,
- index_by_class_name=True)
+ tests = discover.DiscoverClasses(base_dir, base_dir, test.Test,
+ index_by_class_name=True)
+ tests = dict((test.GetName(), test) for test in tests.itervalues())
+ _GetTests.tests = tests
return _GetTests.tests
« tools/perf/page_sets/image_decoding_measurement.json ('K') | « tools/telemetry/telemetry/test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698