[Zope-CVS] CVS: Packages/autotester - autotest.py:1.2
autotest.xml:1.2
Jeremy Hylton
jeremy at zope.com
Fri Sep 5 12:49:36 EDT 2003
Update of /cvs-repository/Packages/autotester
In directory cvs.zope.org:/tmp/cvs-serv14897
Modified Files:
autotest.py autotest.xml
Log Message:
Add config option to control whether unit is deleted.
Helpful for debugging.
=== Packages/autotester/autotest.py 1.1 => 1.2 ===
--- Packages/autotester/autotest.py:1.1 Thu Jul 3 17:50:55 2003
+++ Packages/autotester/autotest.py Fri Sep 5 11:49:35 2003
@@ -181,8 +181,9 @@
self.logger.removeHandler(eh)
self.chdir(prev_dir)
- self.logger.info("deleting %s" % self.rootdir)
- shutil.rmtree(self.rootdir)
+ if self.config.delete:
+ self.logger.info("deleting %s" % self.rootdir)
+ shutil.rmtree(self.rootdir)
def merge_email(source, dest):
=== Packages/autotester/autotest.xml 1.1 => 1.2 ===
--- Packages/autotester/autotest.xml:1.1 Thu Jul 3 17:50:55 2003
+++ Packages/autotester/autotest.xml Fri Sep 5 11:49:35 2003
@@ -30,6 +30,7 @@
<sectiontype name="unit">
<key name="python" default="/usr/local/bin/python" required="no" />
<key name="log" datatype="existing-dirpath" />
+ <key name="delete" datatype="boolean" default="yes" />
<section name="*" attribute="email" type="email" />
<multisection name="*" attribute="checkouts" type="checkout"
required="yes" />
More information about the Zope-CVS
mailing list