Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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.
5 """Helper functions to print buildbot messages."""
7 def PrintLink(label, url):
8 """Adds a link with name |label| linking to |url| to current buildbot step.
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)
17 def PrintMsg(msg):
18 """Appends |msg| to the current buildbot step text.
20 Args:
21 msg: String to be appended.
22 """
23 print '@@@STEP_TEXT@%s@@@' % msg
26 def PrintSummaryText(msg):
27 """Appends |msg| to main build summary. Visible from waterfall.
29 Args:
30 msg: String to be appended.
31 """
32 print '@@@STEP_SUMMARY_TEXT@%s@@@' % msg
35 def PrintError():
36 """Marks the current step as failed."""
37 print '@@@STEP_FAILURE@@@'
40 def PrintWarning():
41 """Marks the current step with a warning."""
42 print '@@@STEP_WARNINGS@@@'
45 def PrintNamedStep(step):
46 print '@@@BUILD_STEP %s@@@' % step