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

Unified Diff: build/android/run_instrumentation_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/test_result.py ('k') | build/android/run_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/run_instrumentation_tests.py
diff --git a/build/android/run_instrumentation_tests.py b/build/android/run_instrumentation_tests.py
index 1a6e099dff981aa134ed74cfc530a42416e9204b..493712385c3988f1929cb1386c42e5229583c449 100755
--- a/build/android/run_instrumentation_tests.py
+++ b/build/android/run_instrumentation_tests.py
@@ -17,19 +17,21 @@ from pylib import run_tests_helper
from pylib.test_result import TestResults
-def SummarizeResults(java_results, python_results, annotation):
+def SummarizeResults(java_results, python_results, annotation, build_type):
"""Summarize the results from the various test types.
Args:
java_results: a TestResults object with java test case results.
python_results: a TestResults object with python test case results.
annotation: the annotation used for these results.
+ build_type: 'Release' or 'Debug'.
Returns:
A tuple (all_results, summary_string, num_failing)
"""
all_results = TestResults.FromTestResults([java_results, python_results])
- summary_string = all_results.LogFull('Instrumentation', annotation)
+ summary_string = all_results.LogFull('Instrumentation', annotation,
+ build_type)
num_failing = (len(all_results.failed) + len(all_results.crashed) +
len(all_results.unknown))
return all_results, summary_string, num_failing
@@ -61,7 +63,7 @@ def DispatchInstrumentationTests(options):
python_results = run_python_tests.DispatchPythonTests(options)
all_results, summary_string, num_failing = SummarizeResults(
- java_results, python_results, options.annotation)
+ java_results, python_results, options.annotation, options.build_type)
return num_failing
« no previous file with comments | « build/android/pylib/test_result.py ('k') | build/android/run_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698