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

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: Add tab switching and flag to netsim. 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
« no previous file with comments | « tools/perf/benchmarks/tab_switching.py ('k') | tools/telemetry/telemetry/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/test.py
diff --git a/tools/telemetry/telemetry/test.py b/tools/telemetry/telemetry/test.py
index d902fe0f5070b343d73826eed15e101c815959fc..b3790c4f6e97f546ec59d12eceaa88926f3c3d4d 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, 'tag'):
+ name += '.' + cls.tag
+ if 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.'
« no previous file with comments | « tools/perf/benchmarks/tab_switching.py ('k') | tools/telemetry/telemetry/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698