[Neo-report] r2384 vincent - /trunk/tools/runner
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Oct 30 14:56:02 CEST 2010
Author: vincent
Date: Sat Oct 30 14:56:02 2010
New Revision: 2384
Log:
Display exception traceback when receiving KeyboardInterrupt.
It usually happens when tests are stuck, and we want to know where it
was stuck.
Modified:
trunk/tools/runner
Modified: trunk/tools/runner
==============================================================================
--- trunk/tools/runner [iso-8859-1] (original)
+++ trunk/tools/runner [iso-8859-1] Sat Oct 30 14:56:02 2010
@@ -16,6 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+import traceback
import optparse
import unittest
import tempfile
@@ -355,6 +356,7 @@ if __name__ == "__main__":
if options.zodb:
runner.run('ZODB tests', ZODB_TEST_MODULES)
except KeyboardInterrupt:
+ traceback.print_exc()
options.sender = False
# build report
More information about the Neo-report
mailing list