Index: build/android/pylib/local/device/local_device_instrumentation_test_run.py |
diff --git a/build/android/pylib/local/device/local_device_instrumentation_test_run.py b/build/android/pylib/local/device/local_device_instrumentation_test_run.py |
index ac3f5b177a8afa463902b528eacf839f59ff2760..2ed16eea6382d9a2757e61bc484f2c321525ccca 100644 |
--- a/build/android/pylib/local/device/local_device_instrumentation_test_run.py |
+++ b/build/android/pylib/local/device/local_device_instrumentation_test_run.py |
@@ -124,19 +124,16 @@ class LocalDeviceInstrumentationTestRun( |
# TODO(jbudorick): Make instrumentation tests output a JSON so this |
# doesn't have to parse the output. |
- logging.debug('output from %s:', test_name) |
+ logging.info('output from %s:' % test_name) |
for l in output: |
- logging.debug(' %s', l) |
+ logging.info(' %s' % l) |
- result_code, result_bundle, statuses = ( |
- self._test_instance.ParseAmInstrumentRawOutput(output)) |
- results = self._test_instance.GenerateTestResults( |
- result_code, result_bundle, statuses, start_ms, duration_ms) |
+ _, _, statuses = self._test_instance.ParseAmInstrumentRawOutput(output) |
+ result = self._test_instance.GenerateTestResult( |
+ test_name, statuses, start_ms, duration_ms) |
if DidPackageCrashOnDevice(self._test_instance.test_package, device): |
- for r in results: |
- if r.GetType() == base_test_result.ResultType.UNKNOWN: |
- r.SetType(base_test_result.ResultType.CRASH) |
- return results |
+ result.SetType(base_test_result.ResultType.CRASH) |
+ return result |
#override |
def _ShouldShard(self): |