media/webrtc/trunk/build/android/pylib/buildbot_report.py

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
michael@0 2 # Use of this source code is governed by a BSD-style license that can be
michael@0 3 # found in the LICENSE file.
michael@0 4
michael@0 5 """Helper functions to print buildbot messages."""
michael@0 6
michael@0 7 def PrintLink(label, url):
michael@0 8 """Adds a link with name |label| linking to |url| to current buildbot step.
michael@0 9
michael@0 10 Args:
michael@0 11 label: A string with the name of the label.
michael@0 12 url: A string of the URL.
michael@0 13 """
michael@0 14 print '@@@STEP_LINK@%s@%s@@@' % (label, url)
michael@0 15
michael@0 16
michael@0 17 def PrintMsg(msg):
michael@0 18 """Appends |msg| to the current buildbot step text.
michael@0 19
michael@0 20 Args:
michael@0 21 msg: String to be appended.
michael@0 22 """
michael@0 23 print '@@@STEP_TEXT@%s@@@' % msg
michael@0 24
michael@0 25
michael@0 26 def PrintSummaryText(msg):
michael@0 27 """Appends |msg| to main build summary. Visible from waterfall.
michael@0 28
michael@0 29 Args:
michael@0 30 msg: String to be appended.
michael@0 31 """
michael@0 32 print '@@@STEP_SUMMARY_TEXT@%s@@@' % msg
michael@0 33
michael@0 34
michael@0 35 def PrintError():
michael@0 36 """Marks the current step as failed."""
michael@0 37 print '@@@STEP_FAILURE@@@'
michael@0 38
michael@0 39
michael@0 40 def PrintWarning():
michael@0 41 """Marks the current step with a warning."""
michael@0 42 print '@@@STEP_WARNINGS@@@'
michael@0 43
michael@0 44
michael@0 45 def PrintNamedStep(step):
michael@0 46 print '@@@BUILD_STEP %s@@@' % step

mercurial