summaryrefslogtreecommitdiffstats
path: root/testing/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/runtests.py')
-rwxr-xr-xtesting/runtests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testing/runtests.py b/testing/runtests.py
index 452c36e..0ff0e6f 100755
--- a/testing/runtests.py
+++ b/testing/runtests.py
@@ -336,8 +336,9 @@ class TestManager:
return 0 if self.args.updateref else res
def prepare_dtd(self):
- shutil.rmtree("dtd",ignore_errors=True)
- shutil.copytree(self.args.inputdir+"/dtd", "dtd")
+ if self.args.inputdir!='.':
+ shutil.rmtree("dtd",ignore_errors=True)
+ shutil.copytree(self.args.inputdir+"/dtd", "dtd")
def main():
# argument handling