In BuildBot, I'd like a step to not execute if a previous step failed.
For instance, in the following class, if test_package()
fails, I don't want install()
to execute.
class Sage(Project):
distros = [RHEL7()]
tests = [SageTest()]
def test_package(self, f, dist):
HaltOnFailure=True
set_properties = {
'package_file_name': util.Property('package_file_name'),
'master_dir': dist.master_dir()
}
if isinstance(dist, RHEL7):
f.addStep(steps.Trigger(
schedulerNames=['sage-rhel7-sage-test'],
doStepIf=partial(do_step, 'sage-rhel7-sage-test'),
waitForFinish=True,
set_properties=set_properties))
def install(self, f, dist):
super(Sage, self).install(f, dist)
How can I inform install() that test_package() failed?