| 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
|
|
|
|
|
|
|