OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2012 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 """Helper functions to print buildbot messages.""" |
| 6 |
| 7 def PrintLink(label, url): |
| 8 """Adds a link with name |label| linking to |url| to current buildbot step. |
| 9 |
| 10 Args: |
| 11 label: A string with the name of the label. |
| 12 url: A string of the URL. |
| 13 """ |
| 14 print '@@@STEP_LINK@%s@%s@@@' % (label, url) |
| 15 |
| 16 |
| 17 def PrintMsg(msg): |
| 18 """Appends |msg| to the current buildbot step text. |
| 19 |
| 20 Args: |
| 21 msg: String to be appended. |
| 22 """ |
| 23 print '@@@STEP_TEXT@%s@@@' % msg |
| 24 |
| 25 |
| 26 def PrintError(): |
| 27 """Marks the current step as failed.""" |
| 28 print '@@@STEP_FAILURE@@@' |
OLD | NEW |