mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
workunit: Allow scratch dir to already exist
Signed-off-by: Sam Lang <sam.lang@inktank.com>
This commit is contained in:
parent
ea02fb74b9
commit
f0080b021e
@ -191,7 +191,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir):
|
||||
for workunit in to_run:
|
||||
log.info('Running workunit %s...', workunit)
|
||||
args = [
|
||||
'mkdir', '--', scratch_tmp,
|
||||
'mkdir', '-p', '--', scratch_tmp,
|
||||
run.Raw('&&'),
|
||||
'cd', '--', scratch_tmp,
|
||||
run.Raw('&&'),
|
||||
@ -224,6 +224,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir):
|
||||
args=args,
|
||||
)
|
||||
finally:
|
||||
log.info('Stopping %s on %s...', spec, role)
|
||||
remote.run(
|
||||
logger=log.getChild(role),
|
||||
args=[
|
||||
|
Loading…
Reference in New Issue
Block a user