cloning the ceph repository on the remote host and submodules including the ceph-object-corpus that way we will have the readable.sh script available
(self)
| 25 | self.log.info('Starting DENcoder task...') |
| 26 | |
| 27 | def setup(self): |
| 28 | """ |
| 29 | cloning the ceph repository on the remote host |
| 30 | and submodules including the ceph-object-corpus |
| 31 | that way we will have the readable.sh script available |
| 32 | """ |
| 33 | super(DENcoder, self).setup() |
| 34 | self.first_mon = next(iter(self.ctx.cluster.only(misc.get_first_mon(self.ctx, self.config)).remotes.keys())) |
| 35 | self.first_mon.run( |
| 36 | args=[ |
| 37 | 'git', 'clone', '-b', self.branch_N, |
| 38 | 'https://github.com/ceph/ceph.git', |
| 39 | '{tdir}/ceph'.format(tdir=self.testdir) |
| 40 | ] |
| 41 | ) |
| 42 | self.ceph_dir = '{tdir}/ceph'.format(tdir=self.testdir) |
| 43 | |
| 44 | self.first_mon.run( |
| 45 | args=[ |
| 46 | 'cd', '{tdir}/ceph'.format(tdir=self.testdir), |
| 47 | run.Raw('&&'), |
| 48 | 'git', 'submodule', 'update', '--init', '--recursive' |
| 49 | ] |
| 50 | ) |
| 51 | self.corpus_dir = '{ceph_dir}/ceph-object-corpus'.format(ceph_dir=self.ceph_dir) |
| 52 | |
| 53 | def begin(self): |
| 54 | """ |