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

Unified Diff: tools/telemetry/telemetry/test.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.py
diff --git a/tools/telemetry/telemetry/test.py b/tools/telemetry/telemetry/test.py
index 1cda68a34990f3262007e38a8334220f17d26c57..0a1d9e92735a5ab283bcdd4a02be6dfec5edb5a8 100644
--- a/tools/telemetry/telemetry/test.py
+++ b/tools/telemetry/telemetry/test.py
@@ -20,6 +20,15 @@ class Test(object):
options = {}
enabled = True
+ @classmethod
+ def GetName(cls):
+ name = cls.__module__.split('.')[-1]
+ if hasattr(cls, 'name'):
+ name += '.' + cls.name
+ elif hasattr(cls, 'page_set'):
+ name += '.' + os.path.basename(os.path.splitext(cls.page_set)[0])
+ return name
+
def Run(self, options):
"""Run this test with the given options."""
assert hasattr(self, 'test'), 'This test has no "test" attribute.'

Powered by Google App Engine
This is Rietveld 408576698