Chromium Code Reviews| Index: build/android/pylib/gtest/test_package.py |
| diff --git a/build/android/pylib/gtest/test_package.py b/build/android/pylib/gtest/test_package.py |
| index fcc53b7b092d401e74cf7b02958fa072fa17cf23..225f774acdb2ccbfc4fe6a778128f2077bd0c031 100644 |
| --- a/build/android/pylib/gtest/test_package.py |
| +++ b/build/android/pylib/gtest/test_package.py |
| @@ -88,11 +88,10 @@ class TestPackage(object): |
| for test in raw_list: |
| if not test: |
| continue |
| - if test[0] != ' ' and not test.endswith('.'): |
| - # Ignore any lines with unexpected format. |
| - continue |
| - if test[0] != ' ' and test.endswith('.'): |
| - current = test |
| + if test[0] != ' ': |
| + test_case = test.split(None, 1)[0] |
|
craigdh
2014/08/05 20:59:31
how is this different from test.split()[0]?
jbudorick
2014/08/05 21:04:10
As before, functionally the same, but it only does
craigdh
2014/08/05 21:23:33
Ah, I never saw your response to the other one. I
|
| + if test_case.endswith('.'): |
| + current = test_case |
| continue |
|
craigdh
2014/08/05 20:59:31
use an else instead
jbudorick
2014/08/05 21:04:10
Done.
|
| if 'YOU HAVE' in test: |
| break |