[Erp5-report] r15308 - /erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 25 17:19:10 CEST 2007
Author: jerome
Date: Wed Jul 25 17:19:10 2007
New Revision: 15308
URL: http://svn.erp5.org?rev=15308&view=rev
Log:
register an atexit handler to make sure zope is stopped, for example when we
interrupt the process.
Modified:
erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py
Modified: erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py?rev=15308&r1=15307&r2=15308&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py (original)
+++ erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py Wed Jul 25 17:19:10 2007
@@ -9,7 +9,7 @@
from subprocess import Popen, PIPE
from sendMail import sendMail
import pysvn
-
+import atexit
__doc__ = """%(program)s: Zelenium functional test runner for the ERP5 Project
@@ -212,8 +212,7 @@
if __name__ == "__main__":
parseArgs()
startZope()
+ atexit.register(stopZope)
main()
- status = sendResult()
- stopZope()
- sys.exit(status)
-
+ sys.exit(sendResult())
+
More information about the Erp5-report
mailing list