]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Make parent directories as needed 460/head
authorYuan Zhou <yuan.zhou@intel.com>
Tue, 7 Apr 2015 04:35:38 +0000 (12:35 +0800)
committerYuan Zhou <yuan.zhou@intel.com>
Tue, 7 Apr 2015 04:37:13 +0000 (12:37 +0800)
with '-p' when mkdir

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
teuthology/task/internal.py

index d1cb95477a1a37b0cced8ed7328fa0f82f4e0c3e..1c62f00915cf12ee41dbcb211218f3c65cf64cb2 100644 (file)
@@ -33,7 +33,7 @@ def base(ctx, config):
     run.wait(
         ctx.cluster.run(
             args=[
-                'mkdir', '-m0755', '--',
+                'mkdir', '-p', '-m0755', '--',
                 testdir,
                 ],
             wait=False,
@@ -453,7 +453,7 @@ def syslog(ctx, config):
     run.wait(
         ctx.cluster.run(
             args=[
-                'mkdir', '-m0755', '--',
+                'mkdir', '-p', '-m0755', '--',
                 '{adir}/syslog'.format(adir=archive_dir),
                 ],
             wait=False,