OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 """Module containing utility functions for reporting results.""" | 5 """Module containing utility functions for reporting results.""" |
6 | 6 |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 import re | 9 import re |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 # instrumenation test package using different annotations. | 103 # instrumenation test package using different annotations. |
104 if annotation and len(annotation) == 1: | 104 if annotation and len(annotation) == 1: |
105 test_suite = annotation[0] | 105 test_suite = annotation[0] |
106 else: | 106 else: |
107 test_suite = test_package | 107 test_suite = test_package |
108 _LogToFile(results, test_type, test_suite, build_type) | 108 _LogToFile(results, test_type, test_suite, build_type) |
109 | 109 |
110 if flakiness_server: | 110 if flakiness_server: |
111 _LogToFlakinessDashboard(results, test_type, test_package, | 111 _LogToFlakinessDashboard(results, test_type, test_package, |
112 flakiness_server) | 112 flakiness_server) |
113 | |
114 | |
115 def PrintAnnotation(results): | |
116 """Print buildbot annotations for test results.""" | |
117 if not results.DidRunPass(): | |
118 buildbot_report.PrintError() | |
119 else: | |
120 print 'Step success!' # No annotation needed | |
OLD | NEW |