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

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

Issue 1001183002: Make allow_subannotations more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Implementation of subannotations (with engine refactor) Created 5 years, 9 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.step('pre run', ['echo', 'pre_run'])
12 result.presentation.step_text = 'fuuuuuuu'
13
14 api.python.inline('subannotator',
15 """
16 import sys
17 print 'Some output...'
18 print '@@@BUILD_STEP a build step@@@'
19 print 'Some output inside a build step'
20 print '@@@STEP_TEXT@this is step text@@@'
21 print '@@@BUILD_STEP another build step@@@'
22 """,
23 allow_subannotations=True)
24
25 api.python.inline('disallowed subannotator',
26 """
27 import sys
28 print 'Some output...'
29 print '@@@BUILD_STEP a unique build step@@@'
30 print 'Some output inside a build step'
31 print '@@@STEP_TEXT@this is step text@@@'
32 print '@@@BUILD_STEP another build step@@@'
33 """)
34
35 api.python.inline('subannotator',
36 """
37 import sys
38 print 'Some output...'
39 print '@@@BUILD_STEP a unique build step@@@'
40 print 'Some output inside a build step'
41 print '@@@STEP_TEXT@this is step text@@@'
42 print '@@@BUILD_STEP another build step@@@'
43 sys.exit(1)
44 """,
45 allow_subannotations=True)
46
47 api.step('post run', ['echo', 'post_run'])
48
49 def GenTests(api):
50 yield api.test('basic')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698