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

Side by Side Diff: scripts/slave/recipe_modules/python/example.py

Issue 1241323004: Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Roll to latest recipes-py Created 5 years, 3 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
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """Launches the repo bundler."""
6
7 DEPS = [
8 'python',
9 'step',
10 ]
11
12
13 def RunSteps(api):
14 api.python.succeeding_step("success", ["This step is a success"],
15 as_log='success')
16
17 # Test that a failing step raises StepFailure.
18 was_failure = False
19 try:
20 api.python.failing_step("failure", "This step is a failure :(")
21 except api.step.StepFailure:
22 was_failure = True
23 assert was_failure
24
25
26 def GenTests(api):
27 yield api.test('basic')
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/python/api.py ('k') | scripts/slave/recipe_modules/python/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698