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

Unified Diff: tools/perf/benchmarks/sunspider.py

Issue 18576004: [telemetry] Add @RunOnBuildMastersNamed support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: redo Created 7 years, 5 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/perf/benchmarks/sunspider.py
diff --git a/tools/perf/benchmarks/sunspider.py b/tools/perf/benchmarks/sunspider.py
index d359ab17ab10c3d81030d593bc18d5611467e99b..c5152aa5bdd8d6073da32403b938e445e041bafc 100644
--- a/tools/perf/benchmarks/sunspider.py
+++ b/tools/perf/benchmarks/sunspider.py
@@ -41,6 +41,10 @@ class Sunspider(test.Test):
"""Performance on Apple's SunSpider JavaScript benchmark"""
test = SunspiderMeasurement
+ @staticmethod
+ def CanRunOnBot(bot_properties):
+ return bot_properties.master_name in ['default', 'chromium.perf']
+
def CreatePageSet(self, options):
sunspider_dir = os.path.join(util.GetChromiumSrcDir(),
'chrome', 'test', 'data', 'sunspider')

Powered by Google App Engine
This is Rietveld 408576698