зеркало из https://github.com/mozilla/gecko-dev.git
Bug 967813: Put the error reason in the message that is reported on TBPL for easier starring; r=philor
This commit is contained in:
Родитель
79d4aaeb4e
Коммит
9f228ac8a9
|
@ -222,7 +222,7 @@ class MarionetteTestResult(unittest._TextTestResult, TestResultCollection):
|
|||
lastline = None
|
||||
fail_present = None
|
||||
for line in err:
|
||||
if not line.startswith('\t'):
|
||||
if not line.startswith('\t') and line != '':
|
||||
lastline = line
|
||||
if 'TEST-UNEXPECTED-FAIL' in line:
|
||||
fail_present = True
|
||||
|
@ -231,7 +231,7 @@ class MarionetteTestResult(unittest._TextTestResult, TestResultCollection):
|
|||
self.stream.writeln("%s" % line)
|
||||
else:
|
||||
self.stream.writeln("TEST-UNEXPECTED-FAIL | %s | %s" %
|
||||
(self.getInfo(error), line))
|
||||
(self.getInfo(error), error.reason))
|
||||
|
||||
def stopTest(self, *args, **kwargs):
|
||||
unittest._TextTestResult.stopTest(self, *args, **kwargs)
|
||||
|
|
Загрузка…
Ссылка в новой задаче