diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-10 13:21:43 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-10 13:21:43 +0000 |
commit | f033c51450702c460a29579f8750640175b83793 (patch) | |
tree | 64dadedf50b59ee627d996c64e251cb69d02d997 /build/android/pylib/buildbot_report.py | |
parent | 62178554941635fbbb0ff566d77b3ff39b546ce3 (diff) | |
download | chromium_src-f033c51450702c460a29579f8750640175b83793.zip chromium_src-f033c51450702c460a29579f8750640175b83793.tar.gz chromium_src-f033c51450702c460a29579f8750640175b83793.tar.bz2 |
[android] Upstream / sync most of build/android and build/android/pylib.
These files have diverged overtime. We need to get them in sync in
preparation for the instrumentation tests.
The patches downstream have been entangled, so this is a bit big and
contains a series of otherwise unrelated patches.
However, it's probably safer to do this way (as it's guaranteed to be similar to
downstream), than trying to split it in multiple patches.
BUG=
TEST=try -b android_test
Review URL: https://chromiumcodereview.appspot.com/10689132
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/pylib/buildbot_report.py')
-rw-r--r-- | build/android/pylib/buildbot_report.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build/android/pylib/buildbot_report.py b/build/android/pylib/buildbot_report.py new file mode 100644 index 0000000..fdb5203 --- /dev/null +++ b/build/android/pylib/buildbot_report.py @@ -0,0 +1,28 @@ +# Copyright (c) 2012 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""Helper functions to print buildbot messages.""" + +def PrintLink(label, url): + """Adds a link with name |label| linking to |url| to current buildbot step. + + Args: + label: A string with the name of the label. + url: A string of the URL. + """ + print '@@@STEP_LINK@%s@%s@@@' % (label, url) + + +def PrintMsg(msg): + """Appends |msg| to the current buildbot step text. + + Args: + msg: String to be appended. + """ + print '@@@STEP_TEXT@%s@@@' % msg + + +def PrintError(): + """Marks the current step as failed.""" + print '@@@STEP_FAILURE@@@' |