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

Unified Diff: scripts/slave/skia/slaves_cfg.py

Issue 1128823007: Skia recipes: Move Android and ChromeOS config info in from slaves.cfg (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 5 years, 7 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/skia/slaves_cfg.py
diff --git a/scripts/slave/skia/slaves_cfg.py b/scripts/slave/skia/slaves_cfg.py
deleted file mode 100644
index cb1740d3ab4b566ee25fc324d9068b5fcec489a7..0000000000000000000000000000000000000000
--- a/scripts/slave/skia/slaves_cfg.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2014 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.
-
-
-"""Utilities for working with slaves.cfg files."""
-
-
-import os
-
-
-def _slaves_cfg_path(master_name):
- def _make_path(master_name, build_dir):
- return os.path.abspath(os.path.join(
- os.path.abspath(os.path.dirname(__file__)), os.pardir, os.pardir,
- os.pardir, os.pardir, build_dir, 'masters',
- 'master.' + master_name, 'slaves.cfg'))
- path = _make_path(master_name, 'build')
- if os.path.isfile(path):
- return path
- path = _make_path(master_name, 'build_internal')
- if os.path.isfile(path):
- return path
- return None
-
-
-def get(master_name):
- """Return a dictionary of the buildslaves for the given master.
-
- Keys are slavenames and values are the unmodified slave dicts from the
- slaves.cfg file for the given master.
- """
- variables = {}
- execfile(_slaves_cfg_path(master_name), variables)
- slaves_cfg = {}
- for slave_dict in variables['slaves']:
- slaves_cfg[slave_dict['hostname']] = slave_dict
- return slaves_cfg
-

Powered by Google App Engine
This is Rietveld 408576698