From: Zack Cerza Date: Mon, 16 Jan 2017 23:14:49 +0000 (-0700) Subject: run: Don't fail if the archive dir exists X-Git-Tag: 1.1.0~474^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85888aef8ae7e9da5eb3245aa3e307e1e29bbaeb;p=teuthology.git run: Don't fail if the archive dir exists Signed-off-by: Zack Cerza --- diff --git a/teuthology/run.py b/teuthology/run.py index 2c8cfbf63..35070182b 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -25,7 +25,8 @@ def set_up_logging(verbose, archive): teuthology.log.setLevel(logging.DEBUG) if archive is not None: - os.mkdir(archive) + if not os.path.isdir(archive): + os.mkdir(archive) teuthology.setup_log_file(os.path.join(archive, 'teuthology.log'))