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

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

Issue 1151423002: Move recipe engine to third_party/recipe_engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Copyright notices 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 from slave import recipe_api 5 from recipe_engine import recipe_api
6 from slave import recipe_util 6 from recipe_engine import recipe_util
7 7
8 8
9 class SwarmingClientApi(recipe_api.RecipeApi): 9 class SwarmingClientApi(recipe_api.RecipeApi):
10 """Code that both isolate and swarming recipe modules depend on. 10 """Code that both isolate and swarming recipe modules depend on.
11 11
12 Both swarming and isolate scripts live in a single repository called 12 Both swarming and isolate scripts live in a single repository called
13 'swarming client'. This module include common functionality like finding 13 'swarming client'. This module include common functionality like finding
14 existing swarming client checkout, fetching a new one, getting version of 14 existing swarming client checkout, fetching a new one, getting version of
15 a swarming script, etc. 15 a swarming script, etc.
16 """ 16 """
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 # TODO(martiniss) remove once recipe 1.5 migration done 121 # TODO(martiniss) remove once recipe 1.5 migration done
122 step_result = self.m.python.inline( 122 step_result = self.m.python.inline(
123 '%s is too old' % script, 123 '%s is too old' % script,
124 'import sys; sys.exit(1)', 124 'import sys; sys.exit(1)',
125 add_python_log=False) 125 add_python_log=False)
126 # TODO(martiniss) get rid of this bare string. 126 # TODO(martiniss) get rid of this bare string.
127 step_result.presentation.status = self.m.step.FAILURE 127 step_result.presentation.status = self.m.step.FAILURE
128 step_result.presentation.step_text = abort_reason 128 step_result.presentation.step_text = abort_reason
129 129
130 raise self.m.step.StepFailure(abort_reason) 130 raise self.m.step.StepFailure(abort_reason)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698