Chromium Code Reviews| Index: build/android/pylib/instrumentation/instrumentation_test_instance.py |
| diff --git a/build/android/pylib/instrumentation/instrumentation_test_instance.py b/build/android/pylib/instrumentation/instrumentation_test_instance.py |
| index b13fdb28f3400c07175e9010f90d207d3116bdb2..3d33b70d6da378ddef0b32df8e5bc07209759ae6 100644 |
| --- a/build/android/pylib/instrumentation/instrumentation_test_instance.py |
| +++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py |
| @@ -101,9 +101,11 @@ def GenerateTestResults( |
| current_result = None |
| + test_class = None |
| + test_method = None |
| for status_code, bundle in statuses: |
| - test_class = bundle.get('class', '') |
| - test_method = bundle.get('test', '') |
| + test_class = bundle.get('class', '') or test_class |
|
jbudorick
2015/12/11 21:04:30
nit if this logic sticks around: just do
test_c
Peter Wen
2015/12/11 22:07:21
Acknowledged.
|
| + test_method = bundle.get('test', '') or test_method |
|
jbudorick
2015/12/11 21:04:30
nit: same
Peter Wen
2015/12/11 22:07:21
Acknowledged.
|
| if test_class and test_method: |
| test_name = '%s#%s' % (test_class, test_method) |
| else: |