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

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

Issue 10868008: Fix test_results.LogFull() issue for Debug build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_instrumentation_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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Runs all the native unit tests. 7 """Runs all the native unit tests.
8 8
9 1. Copy over test binary to /data/local on device. 9 1. Copy over test binary to /data/local on device.
10 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak) 10 2. Resources: chrome/unit_tests requires resources (chrome.pak and en-US.pak)
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 test_filter = ':'.join(shard_test_list) + self.gtest_filter 249 test_filter = ':'.join(shard_test_list) + self.gtest_filter
250 return SingleTestRunner(device, self.test_suite, 250 return SingleTestRunner(device, self.test_suite,
251 test_filter, self.test_arguments, self.timeout, 251 test_filter, self.test_arguments, self.timeout,
252 self.rebaseline, self.performance_test, 252 self.rebaseline, self.performance_test,
253 self.cleanup_test_files, self.tool, index, 253 self.cleanup_test_files, self.tool, index,
254 not not self.log_dump_name, self.fast_and_loose, 254 not not self.log_dump_name, self.fast_and_loose,
255 self.build_type) 255 self.build_type)
256 256
257 def OnTestsCompleted(self, test_runners, test_results): 257 def OnTestsCompleted(self, test_runners, test_results):
258 """Notifies that we completed the tests.""" 258 """Notifies that we completed the tests."""
259 test_results.LogFull('Unit test', os.path.basename(self.test_suite)) 259 test_results.LogFull('Unit test', os.path.basename(self.test_suite),
260 self.build_type)
260 PrintAnnotationForTestResults(test_results) 261 PrintAnnotationForTestResults(test_results)
261 if test_results.failed and self.rebaseline: 262 if test_results.failed and self.rebaseline:
262 test_runners[0].UpdateFilter(test_results.failed) 263 test_runners[0].UpdateFilter(test_results.failed)
263 if self.log_dump_name: 264 if self.log_dump_name:
264 # Zip all debug info outputs into a file named by log_dump_name. 265 # Zip all debug info outputs into a file named by log_dump_name.
265 debug_info.GTestDebugInfo.ZipAndCleanResults( 266 debug_info.GTestDebugInfo.ZipAndCleanResults(
266 os.path.join(TestSuiteDir(self.build_type), 'debug_info_dumps'), 267 os.path.join(TestSuiteDir(self.build_type), 'debug_info_dumps'),
267 self.log_dump_name) 268 self.log_dump_name)
268 269
269 270
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 # the batch (this happens because the exit status is a sum of all failures 448 # the batch (this happens because the exit status is a sum of all failures
448 # from all suites, but the buildbot associates the exit status only with the 449 # from all suites, but the buildbot associates the exit status only with the
449 # most recent step). 450 # most recent step).
450 if options.exit_code: 451 if options.exit_code:
451 return failed_tests_count 452 return failed_tests_count
452 return 0 453 return 0
453 454
454 455
455 if __name__ == '__main__': 456 if __name__ == '__main__':
456 sys.exit(main(sys.argv)) 457 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « build/android/run_instrumentation_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698