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

Unified Diff: tools/telemetry/telemetry/bot_properties.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/telemetry/telemetry/bot_properties.py
diff --git a/tools/telemetry/telemetry/bot_properties.py b/tools/telemetry/telemetry/bot_properties.py
new file mode 100644
index 0000000000000000000000000000000000000000..b9edbc174f82f9d5b50f077745738c1a56b326f6
--- /dev/null
+++ b/tools/telemetry/telemetry/bot_properties.py
@@ -0,0 +1,15 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+import json
+
+class BotProperties(object):
+ def __init__(self):
+ self.master_name = 'default'
+
+ @staticmethod
+ def FromJSON(string):
+ values = json.loads(string)
+ res = BotProperties()
+ res.master_name = values.get('mastername', res.master_name)
+ return res

Powered by Google App Engine
This is Rietveld 408576698