]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
workunit: Allow scratch dir to already exist
authorSam Lang <sam.lang@inktank.com>
Wed, 7 Nov 2012 19:14:09 +0000 (13:14 -0600)
committerSam Lang <sam.lang@inktank.com>
Thu, 8 Nov 2012 15:09:23 +0000 (09:09 -0600)
Signed-off-by: Sam Lang <sam.lang@inktank.com>
teuthology/task/workunit.py

index 03a893edf4a6275ebeb89ea32c196e56854d63ec..536f9bd906bd4b2eb7fbe01da71740501e2bcff6 100644 (file)
@@ -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=[