[Android] Do not list tests without logs in 'Detailed Logs' section.
TEST=python base_test_result_unittest.py BUG= Review URL: https://codereview.chromium.org/13081002 git-svn-id: http://src.chromium.org/svn/trunk/src/build@190705 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
0d022fa846
Коммит
9bc442ed77
|
@ -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):
|
||||
|
|
|
@ -53,8 +53,7 @@ class TestTestRunResults(unittest.TestCase):
|
|||
log_print = ('[FAIL] f1:\n'
|
||||
'failure1\n'
|
||||
'[CRASH] c1:\n'
|
||||
'crash1\n'
|
||||
'[UNKNOWN] u1:\n')
|
||||
'crash1')
|
||||
self.assertEqual(self.tr.GetLogs(), log_print)
|
||||
|
||||
def testGetShortForm(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче