| 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 29 matching lines...) Expand all Loading... |
| 40 test_type, test_package, flakiness_server) | 40 test_type, test_package, flakiness_server) |
| 41 | 41 |
| 42 try: | 42 try: |
| 43 # TODO(jbudorick): remove Instrumentation once instrumentation tests | 43 # TODO(jbudorick): remove Instrumentation once instrumentation tests |
| 44 # switch to platform mode. | 44 # switch to platform mode. |
| 45 if test_type in ('instrumentation', 'Instrumentation'): | 45 if test_type in ('instrumentation', 'Instrumentation'): |
| 46 if flakiness_server == constants.UPSTREAM_FLAKINESS_SERVER: | 46 if flakiness_server == constants.UPSTREAM_FLAKINESS_SERVER: |
| 47 assert test_package in ['ContentShellTest', | 47 assert test_package in ['ContentShellTest', |
| 48 'ChromePublicTest', | 48 'ChromePublicTest', |
| 49 'ChromeSyncShellTest', | 49 'ChromeSyncShellTest', |
| 50 'AndroidWebViewTest', | 50 'SystemWebViewShellLayoutTest', |
| 51 'SystemWebViewShellLayoutTest'] | 51 'WebViewInstrumentationTest'] |
| 52 dashboard_test_type = ('%s_instrumentation_tests' % | 52 dashboard_test_type = ('%s_instrumentation_tests' % |
| 53 test_package.lower().rstrip('test')) | 53 test_package.lower().rstrip('test')) |
| 54 # Downstream server. | 54 # Downstream server. |
| 55 else: | 55 else: |
| 56 dashboard_test_type = 'Chromium_Android_Instrumentation' | 56 dashboard_test_type = 'Chromium_Android_Instrumentation' |
| 57 | 57 |
| 58 elif test_type == 'gtest': | 58 elif test_type == 'gtest': |
| 59 dashboard_test_type = test_package | 59 dashboard_test_type = test_package |
| 60 | 60 |
| 61 else: | 61 else: |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 # instrumenation test package using different annotations. | 107 # instrumenation test package using different annotations. |
| 108 if annotation and len(annotation) == 1: | 108 if annotation and len(annotation) == 1: |
| 109 suite_name = annotation[0] | 109 suite_name = annotation[0] |
| 110 else: | 110 else: |
| 111 suite_name = test_package | 111 suite_name = test_package |
| 112 _LogToFile(results, test_type, suite_name) | 112 _LogToFile(results, test_type, suite_name) |
| 113 | 113 |
| 114 if flakiness_server: | 114 if flakiness_server: |
| 115 _LogToFlakinessDashboard(results, test_type, test_package, | 115 _LogToFlakinessDashboard(results, test_type, test_package, |
| 116 flakiness_server) | 116 flakiness_server) |
| OLD | NEW |