From 37d430c0fd838f7d03394ffd9c86075dbd9c38c2 Mon Sep 17 00:00:00 2001 From: Radovan Bast Date: Fri, 20 May 2016 20:43:08 +0200 Subject: [PATCH] workaround for problem with trying to copy to existing dir --- test/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test.py b/test/test.py index 4424596..2f073c1 100644 --- a/test/test.py +++ b/test/test.py @@ -51,6 +51,8 @@ def configure_build_and_exe(name, setup_command, launcher=None): os.chdir(os.path.join(HERE, name, 'cmake')) shutil.copy(os.path.join('..', '..', '..', 'update.py'), 'update.py') + if os.path.exists('autocmake'): + shutil.rmtree('autocmake') shutil.copytree(os.path.join('..', '..', '..', 'autocmake'), 'autocmake') stdout, stderr = exe('python update.py ..')