OLD | NEW |
1 # Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2015 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 # See http://www.chromium.org/developers/the-json-test-results-format for | 6 # See http://www.chromium.org/developers/the-json-test-results-format for |
7 # output status types. See src/base/test/launcher/test_result.cc for input | 7 # output status types. See src/base/test/launcher/test_result.cc for input |
8 # status types. | 8 # status types. |
9 _GTEST_TO_TEST_RESULTS_STATUS_MAP = { | 9 _GTEST_TO_TEST_RESULTS_STATUS_MAP = { |
10 'CRASH': 'CRASH', | 10 'CRASH': 'CRASH', |
11 'FAILURE': 'FAIL', | 11 'FAILURE': 'FAIL', |
12 'FAILURE_ON_EXIT': 'FAIL', | 12 'FAILURE_ON_EXIT': 'FAIL', |
| 13 'EXCESSIVE_OUTPUT': 'FAIL', |
13 'SKIPPED': 'SKIP', | 14 'SKIPPED': 'SKIP', |
14 'SUCCESS': 'PASS', | 15 'SUCCESS': 'PASS', |
15 'TIMEOUT': 'TIMEOUT', | 16 'TIMEOUT': 'TIMEOUT', |
16 } | 17 } |
17 | 18 |
18 | 19 |
19 def canonical_name(name): | 20 def canonical_name(name): |
20 new_name = name.replace('FLAKY_', '', 1) | 21 new_name = name.replace('FLAKY_', '', 1) |
21 new_name = new_name.replace('FAILS_', '', 1) | 22 new_name = new_name.replace('FAILS_', '', 1) |
22 new_name = new_name.replace('DISABLED_', '', 1) | 23 new_name = new_name.replace('DISABLED_', '', 1) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 self.modifier = self.DISABLED | 69 self.modifier = self.DISABLED |
69 else: | 70 else: |
70 self.modifier = self.NONE | 71 self.modifier = self.NONE |
71 | 72 |
72 def fixable(self): | 73 def fixable(self): |
73 return self.failed or self.modifier == self.DISABLED | 74 return self.failed or self.modifier == self.DISABLED |
74 | 75 |
75 def __repr__(self): | 76 def __repr__(self): |
76 return 'TestResult(%s, %s, %d)' % ( | 77 return 'TestResult(%s, %s, %d)' % ( |
77 self.test_name, self.status, self.test_run_time) | 78 self.test_name, self.status, self.test_run_time) |
OLD | NEW |