From: Sam Lang Date: Wed, 7 Nov 2012 19:14:09 +0000 (-0600) Subject: workunit: Allow scratch dir to already exist X-Git-Tag: 1.1.0~2423 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f0080b021e701f4ee5affecb2c85729c8e1e4b5c;p=teuthology.git workunit: Allow scratch dir to already exist Signed-off-by: Sam Lang --- diff --git a/teuthology/task/workunit.py b/teuthology/task/workunit.py index 03a893edf..536f9bd90 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=[