summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/driver/testlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index ba4f6a5a47..4a87f0a117 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -882,6 +882,8 @@ def do_test(name, way, func, args, files):
if os.path.isfile(src):
link_or_copy_file(src, dst)
elif os.path.isdir(src):
+ if os.path.exists(dst):
+ shutil.rmtree(dst)
os.mkdir(dst)
lndir(src, dst)
else: