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

Side by Side Diff: build/android/test_result.py

Issue 10210001: Add test summaries for native tests for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « build/android/run_tests.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) 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 logging 6 import logging
7 7
8 8
9 # Language values match constants in Sponge protocol buffer (sponge.proto). 9 # Language values match constants in Sponge protocol buffer (sponge.proto).
10 JAVA = 5 10 JAVA = 5
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 self._Log(sorted(self.failed)) 105 self._Log(sorted(self.failed))
106 if self.crashed: 106 if self.crashed:
107 logging.critical('Crashed:') 107 logging.critical('Crashed:')
108 self._Log(sorted(self.crashed)) 108 self._Log(sorted(self.crashed))
109 if self.unknown: 109 if self.unknown:
110 logging.critical('Unknown:') 110 logging.critical('Unknown:')
111 self._Log(sorted(self.unknown)) 111 self._Log(sorted(self.unknown))
112 if not self.GetAllBroken(): 112 if not self.GetAllBroken():
113 logging.critical('Passed') 113 logging.critical('Passed')
114 logging.critical('*' * 80) 114 logging.critical('*' * 80)
115
116 # Summarize in the test output.
117 summary_string = 'Summary:\n'
118 summary_string += 'RAN=%d\n' % (len(self.ok) + len(self.failed) +
119 len(self.crashed) + len(self.unknown))
120 summary_string += 'PASSED=%d\n' % (len(self.ok))
121 summary_string += 'FAILED=%d %s\n' % (len(self.failed),
122 [t.name for t in self.failed])
123 summary_string += 'CRASHED=%d %s\n' % (len(self.crashed),
124 [t.name for t in self.crashed])
125 summary_string += 'UNKNOWN=%d %s\n' % (len(self.unknown),
126 [t.name for t in self.unknown])
127 logging.critical(summary_string)
128 return summary_string
OLDNEW
« no previous file with comments | « build/android/run_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698