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

Unified Diff: build/android/pylib/test_result.py

Issue 11365134: Android: Fix invocations of TestResult.LogFull (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « no previous file | build/android/run_monkey_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/test_result.py
diff --git a/build/android/pylib/test_result.py b/build/android/pylib/test_result.py
index d6074f92b8f1acafde567050fd98d6e0735b77c0..3bc30ab6b19dae9ebb200531903f5fa9b33de517 100644
--- a/build/android/pylib/test_result.py
+++ b/build/android/pylib/test_result.py
@@ -177,7 +177,8 @@ class TestResults(object):
# Summarize in the test output.
summary = ['Summary:\n']
- summary += ['TESTS_TO_RUN=%d\n' % (len(tests_to_run))]
+ if len(tests_to_run) != 0:
frankf 2012/11/07 19:14:32 if tests_to_run:
nilesh 2012/11/07 19:28:57 Done.
+ summary += ['TESTS_TO_RUN=%d\n' % (len(tests_to_run))]
num_tests_ran = (len(self.ok) + len(self.failed) +
len(self.crashed) + len(self.unknown))
tests_passed = [t.name for t in self.ok]
@@ -189,7 +190,7 @@ class TestResults(object):
'FAILED=%d %s\n' % (len(tests_failed), tests_failed),
'CRASHED=%d %s\n' % (len(tests_crashed), tests_crashed),
'UNKNOWN=%d %s\n' % (len(tests_unknown), tests_unknown)]
- if num_tests_ran != len(tests_to_run):
+ if len(tests_to_run) != 0 and num_tests_ran != len(tests_to_run):
frankf 2012/11/07 19:14:32 same here.
nilesh 2012/11/07 19:28:57 Done.
# Add the list of tests we failed to run.
tests_failed_to_run = list(set(tests_to_run) - set(tests_passed) -
set(tests_failed) - set(tests_crashed) -
« no previous file with comments | « no previous file | build/android/run_monkey_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698