| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import time | 10 import time |
| 11 import traceback | 11 import traceback |
| 12 | 12 |
| 13 import buildbot_report | 13 from pylib import buildbot_report |
| 14 import constants | 14 from pylib import constants |
| 15 from pylib.utils import flakiness_dashboard_results_uploader | 15 from pylib.utils import flakiness_dashboard_results_uploader |
| 16 | 16 |
| 17 | 17 |
| 18 _STAGING_SERVER = 'chrome-android-staging' | 18 _STAGING_SERVER = 'chrome-android-staging' |
| 19 | 19 |
| 20 | 20 |
| 21 class BaseTestResult(object): | 21 class BaseTestResult(object): |
| 22 """A single result from a unit test.""" | 22 """A single result from a unit test.""" |
| 23 | 23 |
| 24 def __init__(self, name, log): | 24 def __init__(self, name, log): |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 if flakiness_server: | 273 if flakiness_server: |
| 274 self._LogToFlakinessDashboard(test_type, test_package, flakiness_server) | 274 self._LogToFlakinessDashboard(test_type, test_package, flakiness_server) |
| 275 | 275 |
| 276 def PrintAnnotation(self): | 276 def PrintAnnotation(self): |
| 277 """Print buildbot annotations for test results.""" | 277 """Print buildbot annotations for test results.""" |
| 278 if self.failed or self.crashed or self.overall_fail or self.timed_out: | 278 if self.failed or self.crashed or self.overall_fail or self.timed_out: |
| 279 buildbot_report.PrintError() | 279 buildbot_report.PrintError() |
| 280 else: | 280 else: |
| 281 print 'Step success!' # No annotation needed | 281 print 'Step success!' # No annotation needed |
| OLD | NEW |