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

Unified Diff: scripts/common/chromium_utils.py

Issue 12317053: Sends test results to new perf dashboard (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: fix permissions on unit test 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
« no previous file with comments | « no previous file | scripts/slave/results_dashboard.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/common/chromium_utils.py
diff --git a/scripts/common/chromium_utils.py b/scripts/common/chromium_utils.py
index 287bd9990e9dd58307ffca8d09c7c1cf70e4e82a..28fd9b78620ff27f722eb61bf53231518d0b6cb0 100644
--- a/scripts/common/chromium_utils.py
+++ b/scripts/common/chromium_utils.py
@@ -1018,7 +1018,7 @@ def EntryToSlaveName(entry):
return entry.get('slavename') or entry.get('hostname')
-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 hostname. Returns None otherwise.
@@ -1029,6 +1029,7 @@ def GetActiveMaster(slavename=None):
for slave in GetAllSlaves():
if slavename == EntryToSlaveName(slave):
return slave['master']
+ return default
def ParsePythonCfg(cfg_filepath):
« no previous file with comments | « no previous file | scripts/slave/results_dashboard.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698