mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
coverage: create dir conditionally
We don't need to create the dir if we aren't using coverage. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
parent
0840d05a8f
commit
1130e5fe37
@ -840,17 +840,18 @@ def task(ctx, config):
|
||||
flavor = 'notcmalloc'
|
||||
ctx.summary['flavor'] = flavor or 'default'
|
||||
|
||||
coverage_dir = '/tmp/cephtest/archive/coverage'
|
||||
log.info('Creating coverage directory...')
|
||||
run.wait(
|
||||
ctx.cluster.run(
|
||||
args=[
|
||||
'install', '-d', '-m0755', '--',
|
||||
coverage_dir,
|
||||
],
|
||||
wait=False,
|
||||
if config.get('coverage'):
|
||||
coverage_dir = '/tmp/cephtest/archive/coverage'
|
||||
log.info('Creating coverage directory...')
|
||||
run.wait(
|
||||
ctx.cluster.run(
|
||||
args=[
|
||||
'install', '-d', '-m0755', '--',
|
||||
coverage_dir,
|
||||
],
|
||||
wait=False,
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
if config.get('valgrind'):
|
||||
val_path = '/tmp/cephtest/archive/log/{val_dir}'.format(val_dir=config.get('valgrind').get('logs', "valgrind"))
|
||||
|
Loading…
Reference in New Issue
Block a user