def setUp(self): rmtree("test_steps") self.builder = FakeBuilder() self.builder_status = builder.BuilderStatus("fakebuilder") self.builder_status.basedir = "test_steps" self.builder_status.nextBuildNumber = 0 os.mkdir(self.builder_status.basedir) self.build_status = self.builder_status.newBuild() req = base.BuildRequest("reason", SourceStamp(), 'test_builder') self.build = base.Build([req]) self.build.build_status = self.build_status # fake it self.build.builder = self.builder self.build.slavebuilder = FakeSlaveBuilder() self.remote = FakeRemote() self.finished = 0
def rmtree(self, d): rmtree(d)