Add test summaries for native tests for Android.

Modify test_result.LogFull() to print the summary, and call it when
native finish running.

BUG=
TEST=


Review URL: http://codereview.chromium.org/10210001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133830 0039d316-1c4b-4281-b951-d872f2087c98
parent d7b5bf66
......@@ -214,8 +214,7 @@ def RunTests(device, test_suite, gtest_filter, test_arguments, rebaseline,
debug_info_list += [test.dump_debug_info]
if rebaseline:
test.UpdateFilter(test.test_results.failed)
elif test.test_results.failed:
test.test_results.LogFull()
test.test_results.LogFull()
# Zip all debug info outputs into a file named by log_dump_name.
debug_info.GTestDebugInfo.ZipAndCleanResults(
os.path.join(run_tests_helper.CHROME_DIR, 'out', 'Release',
......
......@@ -112,3 +112,17 @@ class TestResults(object):
if not self.GetAllBroken():
logging.critical('Passed')
logging.critical('*' * 80)
# Summarize in the test output.
summary_string = 'Summary:\n'
summary_string += 'RAN=%d\n' % (len(self.ok) + len(self.failed) +
len(self.crashed) + len(self.unknown))
summary_string += 'PASSED=%d\n' % (len(self.ok))
summary_string += 'FAILED=%d %s\n' % (len(self.failed),
[t.name for t in self.failed])
summary_string += 'CRASHED=%d %s\n' % (len(self.crashed),
[t.name for t in self.crashed])
summary_string += 'UNKNOWN=%d %s\n' % (len(self.unknown),
[t.name for t in self.unknown])
logging.critical(summary_string)
return summary_string
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment