Index: build/android/pylib/base/base_test_result.py |
diff --git a/build/android/pylib/base/base_test_result.py b/build/android/pylib/base/base_test_result.py |
index de0d068e487a52a668cd9a4f0cf964cfee814fd2..ba438e1788f146aecdfbc1f8e231a2788db2be71 100644 |
--- a/build/android/pylib/base/base_test_result.py |
+++ b/build/android/pylib/base/base_test_result.py |
@@ -73,8 +73,10 @@ class TestRunResults(object): |
for test_type in ResultType.GetTypes(): |
if test_type != ResultType.PASS: |
for t in sorted(self._GetType(test_type)): |
- s.append('[%s] %s:' % (test_type, t)) |
- s.append(t.GetLog()) |
+ log = t.GetLog() |
+ if log: |
+ s.append('[%s] %s:' % (test_type, t)) |
+ s.append(log) |
return '\n'.join(s) |
def GetLongForm(self): |