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

Unified 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: rebase_to_r10814 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 side-by-side diff with in-line comments
Download patch
Index: trunk/tools/buildbot_globals.py
===================================================================
--- trunk/tools/buildbot_globals.py (revision 0)
+++ trunk/tools/buildbot_globals.py (revision 0)
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+
+# 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.
+
+"""
+Provides read access to buildbot's global_variables.json .
borenet 2013/08/20 15:24:01 Thanks, this will be helpful!
+"""
+
+import json
+import svn
+
+_global_vars = None
+
+def Get(var_name):
+ '''Return the value associated with this name in global_variables.json. '''
+ global _global_vars
+ if not _global_vars:
+ _global_vars = json.loads(svn.Cat('http://skia.googlecode.com/svn/'
+ 'buildbot/site_config/'
+ 'global_variables.json'))
+ return _global_vars[var_name]['value']
Property changes on: trunk/tools/buildbot_globals.py
___________________________________________________________________
Added: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698