Properly fetching log content

This commit is contained in:
Sergio Durigan Junior 2014-12-22 00:06:44 -05:00
parent 254aa307f9
commit e8684f84e1

View file

@ -113,7 +113,10 @@ send to the gdb-testers mailing list."""
for ss in ss_list:
text.append ("\t%s\n" % ss.revision)
text.append ("\n")
text.append (build.getLog ('regressions').getText ())
for log in build.getLogs ():
if log.getName () == 'regressions' and log.hasContents ():
text.append (log.getText ())
break
return { 'body' : text,
'type' : 'plain',
'subject' : subj }