MCPcopy Create free account
hub / github.com/ceph/ceph / setup

Method setup

qa/tasks/dencoder.py:27–51  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 5

onlyMethod · 0.80
nextFunction · 0.50
keysMethod · 0.45
runMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected