From 6798bd048d6ea6177be6e80ad16be937e5a2ac3d Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 21 Jan 2015 00:02:02 -0500 Subject: [PATCH] Fixing step.getResults return --- master.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index 5e58309..34cd73d 100644 --- a/master.cfg +++ b/master.cfg @@ -23,7 +23,7 @@ from buildbot.steps.source.git import Git from buildbot.steps.slave import RemoveDirectory from buildbot.changes.filter import ChangeFilter 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 gdbgitdb import SaveGDBResults, get_builder_commit_id @@ -164,7 +164,7 @@ send to the gdb-testers mailing list.""" print_xfail = False for log in build.getLogs (): st = log.getStep () - if st.getResults () == FAILURE: + if st.getResults ()[0] == FAILURE: n = st.getName () 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"