| Index: build/android/pylib/gtest/gtest_test_instance.py
|
| diff --git a/build/android/pylib/gtest/gtest_test_instance.py b/build/android/pylib/gtest/gtest_test_instance.py
|
| index 3cdf586a48feadeddbcede2b9cda21b1b17197f0..394b9e8999504614554eb68ee3ad2931d61d0c46 100644
|
| --- a/build/android/pylib/gtest/gtest_test_instance.py
|
| +++ b/build/android/pylib/gtest/gtest_test_instance.py
|
| @@ -99,13 +99,15 @@ def ParseGTestListTests(raw_list):
|
| for test in raw_list:
|
| if not test:
|
| continue
|
| - if test[0] != ' ':
|
| + if not test.startswith(' '):
|
| test_case = test.split()[0]
|
| if test_case.endswith('.'):
|
| current = test_case
|
| - elif not 'YOU HAVE' in test:
|
| - test_name = test.split()[0]
|
| - ret += [current + test_name]
|
| + else:
|
| + test = test.strip()
|
| + if test and not 'YOU HAVE' in test:
|
| + test_name = test.split()[0]
|
| + ret += [current + test_name]
|
| return ret
|
|
|
|
|
|
|