From f0080b021e701f4ee5affecb2c85729c8e1e4b5c Mon Sep 17 00:00:00 2001 From: Sam Lang Date: Wed, 7 Nov 2012 13:14:09 -0600 Subject: [PATCH] workunit: Allow scratch dir to already exist Signed-off-by: Sam Lang --- teuthology/task/workunit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/teuthology/task/workunit.py b/teuthology/task/workunit.py index 03a893edf4a62..536f9bd906bd4 100644 --- a/teuthology/task/workunit.py +++ b/teuthology/task/workunit.py @@ -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=[ -- 2.39.5