From 68eb977e78deef5a399d2471e6effdc2daf827ba Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Tue, 7 Apr 2015 12:35:38 +0800 Subject: [PATCH] Make parent directories as needed with '-p' when mkdir Signed-off-by: Yuan Zhou --- teuthology/task/internal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index d1cb95477..1c62f0091 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -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, -- 2.47.3