def _execute_step(self, _build_url, recipe, step): old_local, old_request = self.local, self.request try: self.local, self.request = False, self._gather return BuildSlave._execute_step(self, 'dummy_build', recipe, step) finally: self.local, self.request = old_local, old_request
def __init__(self, filename, work_dir): BuildSlave.__init__(self, [filename], work_dir=work_dir) self.results = []
def test_quit_raises(self): self.slave = BuildSlave([], work_dir=self.work_dir) self.assertRaises(ExitSlave, self.slave.quit)