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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/android/pylib/buildbot_report.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.5 +# Use of this source code is governed by a BSD-style license that can be
     1.6 +# found in the LICENSE file.
     1.7 +
     1.8 +"""Helper functions to print buildbot messages."""
     1.9 +
    1.10 +def PrintLink(label, url):
    1.11 +  """Adds a link with name |label| linking to |url| to current buildbot step.
    1.12 +
    1.13 +  Args:
    1.14 +    label: A string with the name of the label.
    1.15 +    url: A string of the URL.
    1.16 +  """
    1.17 +  print '@@@STEP_LINK@%s@%s@@@' % (label, url)
    1.18 +
    1.19 +
    1.20 +def PrintMsg(msg):
    1.21 +  """Appends |msg| to the current buildbot step text.
    1.22 +
    1.23 +  Args:
    1.24 +    msg: String to be appended.
    1.25 +  """
    1.26 +  print '@@@STEP_TEXT@%s@@@' % msg
    1.27 +
    1.28 +
    1.29 +def PrintSummaryText(msg):
    1.30 +  """Appends |msg| to main build summary. Visible from waterfall.
    1.31 +
    1.32 +  Args:
    1.33 +    msg: String to be appended.
    1.34 +  """
    1.35 +  print '@@@STEP_SUMMARY_TEXT@%s@@@' % msg
    1.36 +
    1.37 +
    1.38 +def PrintError():
    1.39 +  """Marks the current step as failed."""
    1.40 +  print '@@@STEP_FAILURE@@@'
    1.41 +
    1.42 +
    1.43 +def PrintWarning():
    1.44 +  """Marks the current step with a warning."""
    1.45 +  print '@@@STEP_WARNINGS@@@'
    1.46 +
    1.47 +
    1.48 +def PrintNamedStep(step):
    1.49 +  print '@@@BUILD_STEP %s@@@' % step

mercurial