Fixing step.getResults return

This commit is contained in:
Sergio Durigan Junior 2015-01-21 00:02:02 -05:00
parent f7a08a4135
commit 6798bd048d

View file

@ -23,7 +23,7 @@ from buildbot.steps.source.git import Git
from buildbot.steps.slave import RemoveDirectory from buildbot.steps.slave import RemoveDirectory
from buildbot.changes.filter import ChangeFilter from buildbot.changes.filter import ChangeFilter
from buildbot.buildslave import BuildSlave from buildbot.buildslave import BuildSlave
from buildbot.status.builder import SUCCESS, WARNINGS, FAILURE, EXCEPTION from buildbot.status.results import SUCCESS, WARNINGS, FAILURE, EXCEPTION
from gdbcommand import GdbCatSumfileCommand from gdbcommand import GdbCatSumfileCommand
from gdbgitdb import SaveGDBResults, get_builder_commit_id from gdbgitdb import SaveGDBResults, get_builder_commit_id
@ -164,7 +164,7 @@ send to the gdb-testers mailing list."""
print_xfail = False print_xfail = False
for log in build.getLogs (): for log in build.getLogs ():
st = log.getStep () st = log.getStep ()
if st.getResults () == FAILURE: if st.getResults ()[0] == FAILURE:
n = st.getName () n = st.getName ()
if n == 'update gdb master repo' or n == 'update gdb repo': if n == 'update gdb master repo' or n == 'update gdb repo':
text += "*** Failed to update GDB git repository. This is probably a timeout problem with sourceware. ***\n" text += "*** Failed to update GDB git repository. This is probably a timeout problem with sourceware. ***\n"