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

Side by Side Diff: scripts/slave/recipe_modules/bot_update/api.py

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Review comments 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 """Recipe module to ensure a checkout is consistant on a bot.""" 6 """Recipe module to ensure a checkout is consistant on a bot."""
7 7
8
9 from slave import recipe_api 8 from slave import recipe_api
10 from slave import recipe_util 9 from slave import recipe_util
11 10
12 11
13 # This is just for testing, to indicate if a master is using a Git scheduler 12 # This is just for testing, to indicate if a master is using a Git scheduler
14 # or not. 13 # or not.
15 SVN_MASTERS = ( 14 SVN_MASTERS = (
16 'experimental.svn', 15 'experimental.svn',
17 ) 16 )
18 17
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 228
230 # bot_update actually just sets root to be the folder name of the 229 # bot_update actually just sets root to be the folder name of the
231 # first solution. 230 # first solution.
232 if step_result.json.output['did_run']: 231 if step_result.json.output['did_run']:
233 co_root = step_result.json.output['root'] 232 co_root = step_result.json.output['root']
234 cwd = kwargs.get('cwd', self.m.path['slave_build']) 233 cwd = kwargs.get('cwd', self.m.path['slave_build'])
235 if 'checkout' not in self.m.path: 234 if 'checkout' not in self.m.path:
236 self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep)) 235 self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep))
237 236
238 return step_result 237 return step_result
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/auto_bisect/bisector_test.py ('k') | scripts/slave/recipe_modules/chromite/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698