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

Unified Diff: scripts/common/chromium_utils.py

Issue 860383008: Made annotated_run look up recipe from builders.pyl masters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Review comments Created 5 years, 11 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/master/factory/annotator_factory.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 23913a73dc87ac920b2c7cc1655fa555d05eaa41..1ba92d3ff07aca7312f28fadc64e9774a9325738 100644
--- a/scripts/common/chromium_utils.py
+++ b/scripts/common/chromium_utils.py
@@ -1266,6 +1266,18 @@ def ListMasters(cue='master.cfg', include_public=True, include_internal=True):
return [os.path.abspath(os.path.dirname(f)) for f in filenames]
+def MasterPath(mastername, include_public=True, include_internal=True):
+ path = os.path.join(BUILD_DIR, 'masters', 'master.%s' % mastername)
+ path_internal = os.path.join(
+ BUILD_DIR, os.pardir, 'build_internal', 'masters',
+ 'master.%s' % mastername)
+ if include_public and os.path.isdir(path):
+ return path
+ if include_internal and os.path.isdir(path_internal):
+ return path_internal
+ raise LookupError('Path for master %s not found' % mastername)
+
+
def ListMastersWithSlaves(include_public=True, include_internal=True):
masters_path = ListMasters('builders.pyl', include_public, include_internal)
masters_path.extend(ListMasters('slaves.cfg', include_public,
« no previous file with comments | « no previous file | scripts/master/factory/annotator_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698