summaryrefslogtreecommitdiffstats
path: root/testing/runtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/runtests.py')
-rwxr-xr-xtesting/runtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/runtests.py b/testing/runtests.py
index 0ff0e6f..aa03612 100755
--- a/testing/runtests.py
+++ b/testing/runtests.py
@@ -331,7 +331,7 @@ class TestManager:
tester = Tester(self.args,test)
tester.run(self)
res=self.result()
- if self.args.xhtml and not res and not self.args.keep:
+ if self.args.xhtml and self.args.inputdir!='.' and not res and not self.args.keep:
shutil.rmtree("dtd",ignore_errors=True)
return 0 if self.args.updateref else res