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

Side by Side Diff: trunk/tools/buildbot_globals.py

Issue 23120002: Remove base-* directories from gm expected/actual paths; just use platform names (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: automatically_generate_builder_list Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/usr/bin/python
epoger 2013/08/16 20:16:26 Added buildbot_globals.py
2
3 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 """
8 Provides read access to buildbot's global_variables.json .
9 """
10
11 import json
12 import svn
13
14 _global_vars = None
15
16 def Get(var_name):
17 '''Return the value associated with this name in global_variables.json. '''
18 global _global_vars
19 if not _global_vars:
20 _global_vars = json.loads(svn.Cat('http://skia.googlecode.com/svn/'
21 'buildbot/site_config/'
22 'global_variables.json'))
23 return _global_vars[var_name]['value']
rmistry 2013/08/20 15:13:03 Optional: Catch KeyError and raise a better except
epoger 2013/08/20 15:46:19 Done.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698