summaryrefslogtreecommitdiffstats
path: root/build/android/pylib/test_result.py
diff options
context:
space:
mode:
authorfrankf@google.com <frankf@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-29 23:46:21 +0000
committerfrankf@google.com <frankf@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-29 23:46:21 +0000
commit118cfe57fe9e79b863f53be8500229adaf329334 (patch)
tree4a7f3faf3a61def030e9aca1bdb39adff0138d13 /build/android/pylib/test_result.py
parent2972876692c7a645670a844aeff7427643e95ef5 (diff)
downloadchromium_src-118cfe57fe9e79b863f53be8500229adaf329334.zip
chromium_src-118cfe57fe9e79b863f53be8500229adaf329334.tar.gz
chromium_src-118cfe57fe9e79b863f53be8500229adaf329334.tar.bz2
Add a test runner/sharder for Monkey stress tests.
BUG=145039 Review URL: https://chromiumcodereview.appspot.com/10894021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/pylib/test_result.py')
-rw-r--r--build/android/pylib/test_result.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/android/pylib/test_result.py b/build/android/pylib/test_result.py
index 6c2fad0..043cb48 100644
--- a/build/android/pylib/test_result.py
+++ b/build/android/pylib/test_result.py
@@ -9,6 +9,7 @@ import os
import time
import traceback
+import buildbot_report
import constants
@@ -193,3 +194,12 @@ class TestResults(object):
[t.name for t in self.unknown])
logging.critical(summary_string)
return summary_string
+
+ def PrintAnnotation(self):
+ """Print buildbot annotations for test results."""
+ if self.timed_out:
+ buildbot_report.PrintWarning()
+ elif self.failed or self.crashed or self.overall_fail:
+ buildbot_report.PrintError()
+ else:
+ print 'Step success!' # No annotation needed