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