[Zope-CVS] CVS: Packages/autotester - autotest.py:1.3
Chris Withers
chrisw at nipltd.com
Fri Sep 26 06:29:44 EDT 2003
Update of /cvs-repository/Packages/autotester
In directory cvs.zope.org:/tmp/cvs-serv20950/autotester
Modified Files:
autotest.py
Log Message:
Tweak so that execution failures result in something more descriptive than a ValueError.
=== Packages/autotester/autotest.py 1.2 => 1.3 ===
--- Packages/autotester/autotest.py:1.2 Fri Sep 5 11:49:35 2003
+++ Packages/autotester/autotest.py Fri Sep 26 06:29:42 2003
@@ -74,6 +74,11 @@
print '-'*78
+class ExecuteError(ValueError):
+
+ def __str__(self):
+ return "The command '%s' returned %s" % self.args
+
class Test:
def __init__(self, config):
@@ -105,7 +110,7 @@
logger.info(line)
err = fout.close()
if err is not None:
- raise ValueError, err
+ raise ExecuteError, (cmd,err)
def checkout(self, checkout):
self.chdir(self.rootdir)
More information about the Zope-CVS
mailing list