Chromium Code Reviews| 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) - |