(self)
| 163 | ) |
| 164 | |
| 165 | def setup(self): |
| 166 | super(CBT, self).setup() |
| 167 | self.first_mon = next(iter(self.ctx.cluster.only(misc.get_first_mon(self.ctx, self.config)).remotes.keys())) |
| 168 | self.cbt_config = self.generate_cbt_config() |
| 169 | self.log.info('cbt configuration is %s', self.cbt_config) |
| 170 | self.cbt_dir = os.path.join(misc.get_archive_dir(self.ctx), 'cbt') |
| 171 | self.ctx.cluster.run(args=['mkdir', '-p', '-m0755', '--', self.cbt_dir]) |
| 172 | self.first_mon.write_file( |
| 173 | os.path.join(self.cbt_dir, 'cbt_config.yaml'), |
| 174 | yaml.safe_dump(self.cbt_config, default_flow_style=False)) |
| 175 | self.checkout_cbt() |
| 176 | self.install_dependencies() |
| 177 | |
| 178 | def begin(self): |
| 179 | super(CBT, self).begin() |
nothing calls this directly
no test coverage detected