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

Unified Diff: scripts/slave/bootstrap.py

Issue 12317053: Sends test results to new perf dashboard (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Ready for review Created 7 years, 10 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: scripts/slave/bootstrap.py
diff --git a/scripts/slave/bootstrap.py b/scripts/slave/bootstrap.py
index 8e3b3095043b5fe5a6a0884db506d36b02ccc4ab..6c0d0dc669de553778454efb821c4912e1874670 100644
--- a/scripts/slave/bootstrap.py
+++ b/scripts/slave/bootstrap.py
@@ -46,7 +46,7 @@ def ImportMasterConfigs(master_name=None):
setattr(config_bootstrap.Master, 'active_master', symbol)
-def GetActiveMaster(slavename=None):
+def GetActiveMaster(slavename=None, default=None):
"""Parses all the slaves.cfg and returns the name of the active master
determined by the host name. Returns None otherwise.
@@ -67,3 +67,4 @@ def GetActiveMaster(slavename=None):
for key in config_keys:
if slave.get(key, None) == config_val:
return slave['master']
+ return default
« no previous file with comments | « no previous file | scripts/slave/results_dashboard.py » ('j') | scripts/slave/unittests/results_dashboard_test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698