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

Side by Side Diff: scripts/slave/recipes/example/subannotations.py

Issue 1071733003: Revert of Make allow_subannotations more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 8 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 2014 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 DEPS = [
6 'python',
7 'step',
8 ]
9
10 def GenSteps(api):
11 result = api.python.inline('subannotator',
12 """
13 import sys
14 print 'Some output...'
15 print '@@@BUILD_STEP a build step@@@'
16 print 'Some output inside a build step'
17 print '@@@STEP_TEXT@this is step text@@@'
18 print '@@@BUILD_STEP another build step@@@'
19 """,
20 allow_subannotations=True)
21 result.presentation.step_text = 'Wooot!'
22
23 api.python.inline('disallowed subannotator',
24 """
25 import sys
26 print 'Some output...'
27 print '@@@BUILD_STEP a unique build step@@@'
28 print 'Some output inside a build step'
29 print '@@@STEP_TEXT@this is step text@@@'
30 print '@@@BUILD_STEP another build step@@@'
31 """)
32
33 api.python.inline('subannotator',
34 """
35 import sys
36 print 'Some output...'
37 print '@@@BUILD_STEP a unique build step@@@'
38 print 'Some output inside a build step'
39 print '@@@STEP_TEXT@this is step text@@@'
40 print '@@@BUILD_STEP another build step@@@'
41 sys.exit(1)
42 """,
43 allow_subannotations=True)
44
45 api.step('post run', ['echo', 'post_run'])
46
47 def GenTests(api):
48 yield api.test('basic')
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/step/api.py ('k') | scripts/slave/recipes/example/subannotations.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698