| OLD | NEW |
| (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') |
| OLD | NEW |