Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: scripts/slave/recipe_modules/test_results/resources/test_result.py

Issue 2408423005: Recognize EXCESSIVE_OUTPUT gtest result (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « scripts/common/gtest_utils.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « scripts/common/gtest_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698